rust-clippy: tell clippy we want to keep those clauses separate
This makes the cases more explicit, which is wanted in this specific instance.
--- 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) {