Skip to content

Commit f6ba217

Browse files
committed
Small cleanup
1 parent f37c9ad commit f6ba217

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

clippy_lints/src/minmax.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ fn fetch_const(args: &[P<Expr>], m: MinMax) -> Option<(MinMax, Constant, &Expr)>
8383
} else {
8484
None
8585
}
86+
} else if let Some(c) = constant_simple(&args[1]) {
87+
Some((m, c, &args[0]))
8688
} else {
87-
if let Some(c) = constant_simple(&args[1]) {
88-
Some((m, c, &args[0]))
89-
} else {
90-
None
91-
}
89+
None
9290
}
9391
}

0 commit comments

Comments
 (0)