Skip to content

Commit 72e88af

Browse files
committed
Formatted updates to lints
1 parent d9fe3b0 commit 72e88af

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

clippy_lints/src/minmax.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ fn fetch_const<'a>(
9191
return None;
9292
}
9393
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
94+
|| {
95+
if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
96+
Some((m, c, &args[0]))
97+
} else {
98+
None
99+
}
98100
},
99101
|c| {
100102
if constant_simple(cx, cx.tables, &args[1]).is_none() {
@@ -103,5 +105,6 @@ fn fetch_const<'a>(
103105
} else {
104106
None
105107
}
106-
})
108+
},
109+
)
107110
}

0 commit comments

Comments
 (0)