Skip to content

Commit c72be0f

Browse files
author
Michael Wright
committed
rustfmt
1 parent adcc02e commit c72be0f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/loops.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Loops {
483483
// check for never_loop
484484
if let ExprKind::Loop(ref block, _, _) = expr.node {
485485
match never_loop_block(block, expr.hir_id) {
486-
NeverLoopResult::AlwaysBreak => {
487-
span_lint(cx, NEVER_LOOP, expr.span, "this loop never actually loops")
488-
},
486+
NeverLoopResult::AlwaysBreak => span_lint(cx, NEVER_LOOP, expr.span, "this loop never actually loops"),
489487
NeverLoopResult::MayContinueMainLoop | NeverLoopResult::Otherwise => (),
490488
}
491489
}

0 commit comments

Comments
 (0)