changeset 49919:bd42bd6eae45

rust-clippy: tell clippy we want to keep those clauses separate This makes the cases more explicit, which is wanted in this specific instance.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 09 Jan 2023 18:09:26 +0100
parents 4158608f7786
children 0d301f4180f5
files rust/hg-core/src/dirstate/entry.rs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {