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;
|
return None;
|
||||||
}
|
}
|
||||||
constant_simple(cx, cx.tables, &args[0]).map_or_else(
|
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]))
|
if let Some(c) = constant_simple(cx, cx.tables(), &args[1]) {
|
||||||
} else {
|
Some((m, c, &args[0]))
|
||||||
None
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|c| {
|
|c| {
|
||||||
if constant_simple(cx, cx.tables, &args[1]).is_none() {
|
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 {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
})
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue