mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
Formatted updates to lints
This commit is contained in:
parent
6e2d55c8db
commit
1c32263176
@ -87,10 +87,12 @@ fn fetch_const<'a>(cx: &LateContext<'_>, args: &'a [Expr<'a>], m: MinMax) -> Opt
|
||||
return None;
|
||||
}
|
||||
constant_simple(cx, cx.tables, &args[0]).map_or_else(
|
||||
|| if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
|
||||
Some((m, c, &args[0]))
|
||||
} else {
|
||||
None
|
||||
|| {
|
||||
if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
|
||||
Some((m, c, &args[0]))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
},
|
||||
|c| {
|
||||
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
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
},
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user