rust-clippy: tell clippy we want to keep those clauses separate
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 09 Jan 2023 18:09:26 +0100
changeset 49992 bd42bd6eae45
parent 49991 4158608f7786
child 49993 0d301f4180f5
rust-clippy: tell clippy we want to keep those clauses separate This makes the cases more explicit, which is wanted in this specific instance.
rust/hg-core/src/dirstate/entry.rs
--- a/rust/hg-core/src/dirstate/entry.rs	Mon Jan 09 18:04:29 2023 +0100
+++ b/rust/hg-core/src/dirstate/entry.rs	Mon Jan 09 18:09:26 2023 +0100
@@ -423,6 +423,7 @@
 
     pub fn maybe_clean(&self) -> bool {
         #[allow(clippy::if_same_then_else)]
+        #[allow(clippy::needless_bool)]
         if !self.flags.contains(Flags::WDIR_TRACKED) {
             false
         } else if !self.flags.contains(Flags::P1_TRACKED) {