about summary refs log tree commit diff
path: root/clippy_lints/src/transmute/missing_transmute_annotations.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/transmute/missing_transmute_annotations.rs')
-rw-r--r--clippy_lints/src/transmute/missing_transmute_annotations.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/transmute/missing_transmute_annotations.rs b/clippy_lints/src/transmute/missing_transmute_annotations.rs
index 96286fcf73d..08f36a2ed5d 100644
--- a/clippy_lints/src/transmute/missing_transmute_annotations.rs
+++ b/clippy_lints/src/transmute/missing_transmute_annotations.rs
@@ -74,7 +74,7 @@ pub(super) fn check<'tcx>(
         last.ident.span.with_hi(path.span.hi()),
         "transmute used without annotations",
         "consider adding missing annotations",
-        format!("{}::<{from_ty}, {to_ty}>", last.ident.as_str()),
+        format!("{}::<{from_ty}, {to_ty}>", last.ident),
         Applicability::MaybeIncorrect,
     );
     true