Skip to content

Commit 34785a1

Browse files
author
Grzegorz Bartoszek
committed
formatting fix
1 parent 4532073 commit 34785a1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/needless_bool.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessBool {
6767
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
6868
use self::Expression::*;
6969
if let ExprKind::If(ref pred, ref then_block, Some(ref else_expr)) = e.node {
70-
7170
let reduce = |ret, not| {
7271
let mut applicability = Applicability::MachineApplicable;
7372
let snip = Sugg::hir_with_applicability(cx, pred, "<predicate>", &mut applicability);

0 commit comments

Comments
 (0)