Skip to content

Commit

Permalink
Add semicolon in needless_for_each.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbartlett21 committed May 25, 2021
1 parent 6d73777 commit 9cad27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/needless_for_each.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl<'tcx> Visitor<'tcx> for RetCollector {
match expr.kind {
ExprKind::Ret(..) => {
if self.loop_depth > 0 && !self.ret_in_loop {
self.ret_in_loop = true
self.ret_in_loop = true;
}

self.spans.push(expr.span);
Expand Down

0 comments on commit 9cad27f

Please sign in to comment.