##// END OF EJS Templates
rust-clippy: tell clippy we care about keeping those `if` clauses separate...
Raphaël Gomès -
r50813:4158608f default
parent child Browse files
Show More
@@ -422,6 +422,7 b' impl DirstateEntry {'
422 422 }
423 423
424 424 pub fn maybe_clean(&self) -> bool {
425 #[allow(clippy::if_same_then_else)]
425 426 if !self.flags.contains(Flags::WDIR_TRACKED) {
426 427 false
427 428 } else if !self.flags.contains(Flags::P1_TRACKED) {
@@ -511,6 +512,8 b' impl DirstateEntry {'
511 512 // TODO: return an Option instead?
512 513 panic!("Accessing v1_mtime of an untracked DirstateEntry")
513 514 }
515
516 #[allow(clippy::if_same_then_else)]
514 517 if self.removed() {
515 518 0
516 519 } else if self.flags.contains(Flags::P2_INFO) {
General Comments 0
You need to be logged in to leave comments. Login now