Skip to content

Commit

Permalink
Follow review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blyxyas committed Jul 23, 2024
1 parent ffa9be7 commit 5fedd60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/loops/mut_range_bound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl<'tcx> Visitor<'tcx> for BreakAfterExprVisitor {
self.break_after_expr = true;
}

return ControlFlow::Break(());
ControlFlow::Break(())
} else {
intravisit::walk_expr(self, expr)
}
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/option_map_unwrap_or.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub(super) fn check<'tcx>(
// Visit the body, and return if we've found a reference
if reference_visitor.visit_body(body).is_break() {
return;
};
}
}

if !unwrap_arg.span.eq_ctxt(map_span) {
Expand Down
2 changes: 1 addition & 1 deletion clippy_utils/src/visitors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub fn for_each_expr_without_closures<'tcx, B, C: Continue>(
v.res
}

/// Calls the given function once for each expression contained. This will enter bodies, bzut not
/// Calls the given function once for each expression contained. This will enter bodies, but not
/// nested items.
pub fn for_each_expr<'tcx, B, C: Continue>(
cx: &LateContext<'tcx>,
Expand Down

0 comments on commit 5fedd60

Please sign in to comment.