# HG changeset patch # User Raphaël Gomès # Date 1673284166 -3600 # Node ID bd42bd6eae4512abcad0a99d0eafe864e9d792dc # Parent 4158608f77863901cd5ad93ac43e45f5bd267661 rust-clippy: tell clippy we want to keep those clauses separate This makes the cases more explicit, which is wanted in this specific instance. diff -r 4158608f7786 -r bd42bd6eae45 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) {