Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e42a18f

Browse files
committed
Run cargo dev fmt.
1 parent 82a7068 commit e42a18f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

clippy_lints/src/misc.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::utils::sugg::Sugg;
1818
use crate::utils::{
1919
get_item_name, get_parent_expr, higher, implements_trait, in_constant, is_integer_const, iter_input_pats,
2020
last_path_segment, match_qpath, match_trait_method, paths, snippet, snippet_opt, span_lint, span_lint_and_sugg,
21-
span_lint_and_then, span_lint_hir_and_then, SpanlessEq, unsext,
21+
span_lint_and_then, span_lint_hir_and_then, unsext, SpanlessEq,
2222
};
2323

2424
declare_clippy_lint! {
@@ -439,8 +439,12 @@ impl<'tcx> LateLintPass<'tcx> for MiscLints {
439439

440440
if let ty::Int(ity) = cx.typeck_results().expr_ty(right).kind() {
441441
if is_integer_const(cx, right, unsext(cx.tcx, -1, *ity)) {
442-
span_lint(cx, MODULO_ONE, expr.span,
443-
"any number modulo -1 will panic/overflow or result in 0");
442+
span_lint(
443+
cx,
444+
MODULO_ONE,
445+
expr.span,
446+
"any number modulo -1 will panic/overflow or result in 0",
447+
);
444448
}
445449
};
446450
}

0 commit comments

Comments
 (0)