# HG changeset patch # User Raphaël Gomès # Date 2023-01-09 17:09:26 # 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 --git a/rust/hg-core/src/dirstate/entry.rs b/rust/hg-core/src/dirstate/entry.rs --- a/rust/hg-core/src/dirstate/entry.rs +++ b/rust/hg-core/src/dirstate/entry.rs @@ -423,6 +423,7 @@ impl DirstateEntry { 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) {