about summary refs log tree commit diff
path: root/clippy_lints/src/methods/get_first.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/methods/get_first.rs')
-rw-r--r--clippy_lints/src/methods/get_first.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/get_first.rs b/clippy_lints/src/methods/get_first.rs
index 4de77de7404..cb17af608a3 100644
--- a/clippy_lints/src/methods/get_first.rs
+++ b/clippy_lints/src/methods/get_first.rs
@@ -29,9 +29,9 @@ pub(super) fn check<'tcx>(
                 cx,
                 GET_FIRST,
                 expr.span,
-                &format!("accessing first element with `{0}.get(0)`", slice_name),
+                &format!("accessing first element with `{slice_name}.get(0)`"),
                 "try",
-                format!("{}.first()", slice_name),
+                format!("{slice_name}.first()"),
                 app,
             );
         }