We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c3033d commit 932cc08Copy full SHA for 932cc08
clippy_lints/src/methods/bytes_nth.rs
@@ -26,7 +26,7 @@ pub(super) fn lints<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, iter_args: &'
26
BYTES_NTH,
27
expr.span,
28
&format!("called `.byte().nth()` on a `{}`", caller_type),
29
- "try calling `.as_bytes().get()`",
+ "try",
30
format!(
31
"{}.as_bytes().get({})",
32
snippet_with_applicability(cx, iter_args[0].span, "..", &mut applicability),
0 commit comments