Skip to content

Commit 5a3ed18

Browse files
committed
address PR comment
1 parent 2342e6e commit 5a3ed18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/loops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2371,7 +2371,7 @@ fn check_infinite_loop<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, cond: &'tcx Expr, e
23712371
let mut has_break_or_return_visitor = HasBreakOrReturnVisitor {
23722372
has_break_or_return: false,
23732373
};
2374-
walk_expr(&mut has_break_or_return_visitor, expr);
2374+
has_break_or_return_visitor.visit_expr(expr);
23752375
let has_break_or_return = has_break_or_return_visitor.has_break_or_return;
23762376

23772377
if no_cond_variable_mutated && !mutable_static_in_cond && !has_break_or_return {

0 commit comments

Comments
 (0)