Skip to content

Commit be09693

Browse files
Jarchoflip1995
andauthored
Update clippy_lints/src/redundant_slicing.rs
Co-authored-by: Philipp Krones <[email protected]>
1 parent c379af0 commit be09693

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

clippy_lints/src/redundant_slicing.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,15 @@ impl LateLintPass<'_> for RedundantSlicing {
5252
let mut app = Applicability::MachineApplicable;
5353
let hint = snippet_with_applicability(cx, indexed.span, "..", &mut app).into_owned();
5454

55-
span_lint_and_sugg(cx, REDUNDANT_SLICING, expr.span, "redundant slicing of the whole range",
56-
"use the original slice instead", hint, app);
55+
span_lint_and_sugg(
56+
cx,
57+
REDUNDANT_SLICING,
58+
expr.span,
59+
"redundant slicing of the whole range",
60+
"use the original slice instead",
61+
hint,
62+
app,
63+
);
5764
}
5865
}
5966
}

0 commit comments

Comments
 (0)