diff --git a/clippy_lints/src/minmax.rs b/clippy_lints/src/minmax.rs index 645aa9a9b5ba..df0acc95fb41 100644 --- a/clippy_lints/src/minmax.rs +++ b/clippy_lints/src/minmax.rs @@ -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() { @@ -103,5 +105,6 @@ fn fetch_const<'a>( } else { None } - }) + }, + ) }