Skip to content

Commit 73b03b5

Browse files
committed
Fix shadow.rs
1 parent aad8e69 commit 73b03b5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

clippy_lints/src/shadow.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,6 @@ fn check_expr<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr, bindings:
319319
check_expr(cx, e, bindings)
320320
}
321321
},
322-
ExprKind::If(ref cond, ref then, ref otherwise) => {
323-
check_expr(cx, cond, bindings);
324-
check_expr(cx, &**then, bindings);
325-
if let Some(ref o) = *otherwise {
326-
check_expr(cx, o, bindings);
327-
}
328-
},
329322
ExprKind::While(ref cond, ref block, _) => {
330323
check_expr(cx, cond, bindings);
331324
check_block(cx, block, bindings);

0 commit comments

Comments
 (0)