Skip to content

Commit 932cc08

Browse files
TaKO8Kiphansch
andauthored
Update clippy_lints/src/methods/bytes_nth.rs
Co-authored-by: Phil Hansch <[email protected]>
1 parent 1c3033d commit 932cc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/bytes_nth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub(super) fn lints<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, iter_args: &'
2626
BYTES_NTH,
2727
expr.span,
2828
&format!("called `.byte().nth()` on a `{}`", caller_type),
29-
"try calling `.as_bytes().get()`",
29+
"try",
3030
format!(
3131
"{}.as_bytes().get({})",
3232
snippet_with_applicability(cx, iter_args[0].span, "..", &mut applicability),

0 commit comments

Comments
 (0)