about summary refs log tree commit diff
path: root/clippy_lints/src/methods/bytes_nth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/methods/bytes_nth.rs')
-rw-r--r--clippy_lints/src/methods/bytes_nth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/bytes_nth.rs b/clippy_lints/src/methods/bytes_nth.rs
index 44857d61fef..2e96346be97 100644
--- a/clippy_lints/src/methods/bytes_nth.rs
+++ b/clippy_lints/src/methods/bytes_nth.rs
@@ -22,7 +22,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'_>, recv: &'tcx E
         cx,
         BYTES_NTH,
         expr.span,
-        &format!("called `.bytes().nth()` on a `{}`", caller_type),
+        &format!("called `.bytes().nth()` on a `{caller_type}`"),
         "try",
         format!(
             "{}.as_bytes().get({})",