Skip to content

Commit 1991c56

Browse files
josephlrflip1995
andauthored
Update clippy_lints/src/loops.rs
Fix NITs Co-authored-by: Philipp Krones <[email protected]>
1 parent c39386a commit 1991c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/loops.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ impl<'tcx> LateLintPass<'tcx> for Loops {
547547
if block.stmts.is_empty() && block.expr.is_none() && !is_in_panic_handler(cx, expr) {
548548
let msg = "empty `loop {}` wastes CPU cycles";
549549
let help = if is_no_std_crate(cx.tcx.hir().krate()) {
550-
"You should either use `panic!()` or add a call pausing or sleeping the thread to the loop body."
550+
"you should either use `panic!()` or add a call pausing or sleeping the thread to the loop body"
551551
} else {
552-
"You should either use `panic!()` or add `std::thread::sleep(..);` to the loop body."
552+
"you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body"
553553
};
554554
span_lint_and_help(cx, EMPTY_LOOP, expr.span, msg, None, help);
555555
}

0 commit comments

Comments
 (0)