about summary refs log tree commit diff
path: root/clippy_lints/src/methods/get_unwrap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/methods/get_unwrap.rs')
-rw-r--r--clippy_lints/src/methods/get_unwrap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/get_unwrap.rs b/clippy_lints/src/methods/get_unwrap.rs
index afdcb3b6549..455274a4428 100644
--- a/clippy_lints/src/methods/get_unwrap.rs
+++ b/clippy_lints/src/methods/get_unwrap.rs
@@ -70,7 +70,7 @@ pub(super) fn check<'tcx>(
         cx,
         GET_UNWRAP,
         span,
-        &format!("called `.get{mut_str}().unwrap()` on a {caller_type}. Using `[]` is more clear and more concise"),
+        format!("called `.get{mut_str}().unwrap()` on a {caller_type}. Using `[]` is more clear and more concise"),
         "try",
         format!(
             "{borrow_str}{}[{get_args_str}]",