Skip to content

Commit 1c32263

Browse files
committed
Formatted updates to lints
1 parent 6e2d55c commit 1c32263

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
@@ -87,10 +87,12 @@ fn fetch_const<'a>(cx: &LateContext<'_>, args: &'a [Expr<'a>], m: MinMax) -> Opt
8787
return None;
8888
}
8989
constant_simple(cx, cx.tables, &args[0]).map_or_else(
90-
|| if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
91-
Some((m, c, &args[0]))
92-
} else {
93-
None
90+
|| {
91+
if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
92+
Some((m, c, &args[0]))
93+
} else {
94+
None
95+
}
9496
},
9597
|c| {
9698
if constant_simple(cx, cx.tables, &args[1]).is_none() {
@@ -99,5 +101,6 @@ fn fetch_const<'a>(cx: &LateContext<'_>, args: &'a [Expr<'a>], m: MinMax) -> Opt
99101
} else {
100102
None
101103
}
102-
})
104+
},
105+
)
103106
}

0 commit comments

Comments
 (0)