Skip to content

Commit

Permalink
Formatted updates to lints
Browse files Browse the repository at this point in the history
  • Loading branch information
JarredAllen committed Jul 1, 2020
1 parent d9fe3b0 commit 72e88af
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions clippy_lints/src/minmax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ fn fetch_const<'a>(
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() {
Expand All @@ -103,5 +105,6 @@ fn fetch_const<'a>(
} else {
None
}
})
},
)
}

0 comments on commit 72e88af

Please sign in to comment.