mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
Formatted updates to lints
This commit is contained in:
parent
6e2d55c8db
commit
1c32263176
1 changed files with 8 additions and 5 deletions
|
@ -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]) {
|
||||
|| {
|
||||
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 a new issue