Skip to content

Commit 5fedd60

Browse files
committed
Follow review comments
1 parent ffa9be7 commit 5fedd60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_lints/src/loops/mut_range_bound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'tcx> Visitor<'tcx> for BreakAfterExprVisitor {
144144
self.break_after_expr = true;
145145
}
146146

147-
return ControlFlow::Break(());
147+
ControlFlow::Break(())
148148
} else {
149149
intravisit::walk_expr(self, expr)
150150
}

clippy_lints/src/methods/option_map_unwrap_or.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub(super) fn check<'tcx>(
6464
// Visit the body, and return if we've found a reference
6565
if reference_visitor.visit_body(body).is_break() {
6666
return;
67-
};
67+
}
6868
}
6969

7070
if !unwrap_arg.span.eq_ctxt(map_span) {

clippy_utils/src/visitors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub fn for_each_expr_without_closures<'tcx, B, C: Continue>(
145145
v.res
146146
}
147147

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

0 commit comments

Comments
 (0)