Skip to content

Commit 6a319f2

Browse files
xiongmao86flip1995
andauthored
Fixes if chains.
Co-Authored-By: Philipp Krones <[email protected]>
1 parent 36e67d5 commit 6a319f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/internal_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CollapsibleCalls {
464464
if match_qpath(path, &["span_lint_and_then"]);
465465
if and_then_args.len() == 5;
466466
if let ExprKind::Closure(_, _, body_id, _, _) = &and_then_args[4].kind;
467-
if let body = cx.tcx.hir().body(*body_id);
467+
let body = cx.tcx.hir().body(*body_id);
468468
if let ExprKind::Block(block, _) = &body.value.kind;
469469
let stmts = &block.stmts;
470470
if stmts.len() == 1 && block.expr.is_none();

0 commit comments

Comments
 (0)