We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9fe3b0 commit 72e88afCopy full SHA for 72e88af
clippy_lints/src/minmax.rs
@@ -91,10 +91,12 @@ fn fetch_const<'a>(
91
return None;
92
}
93
constant_simple(cx, cx.tables, &args[0]).map_or_else(
94
- || if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
95
- Some((m, c, &args[0]))
96
- } else {
97
- None
+ || {
+ if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
+ Some((m, c, &args[0]))
+ } else {
98
+ None
99
+ }
100
},
101
|c| {
102
if constant_simple(cx, cx.tables, &args[1]).is_none() {
@@ -103,5 +105,6 @@ fn fetch_const<'a>(
103
105
} else {
104
106
None
107
- })
108
+ },
109
+ )
110
0 commit comments