From 571f4eb9340a415f52b14564dbd8259390ac2d12 Mon Sep 17 00:00:00 2001 From: "Samuel E. Moelius III" Date: Wed, 13 Oct 2021 19:56:23 -0400 Subject: [PATCH] Remove unnecessary `to_string` in transmute_num_to_bytes.rs --- clippy_lints/src/transmute/transmute_num_to_bytes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/transmute/transmute_num_to_bytes.rs b/clippy_lints/src/transmute/transmute_num_to_bytes.rs index dd5ded1c91a1..5ba58a764940 100644 --- a/clippy_lints/src/transmute/transmute_num_to_bytes.rs +++ b/clippy_lints/src/transmute/transmute_num_to_bytes.rs @@ -37,7 +37,7 @@ pub(super) fn check<'tcx>( diag.span_suggestion( e.span, "consider using `to_ne_bytes()`", - format!("{}.to_ne_bytes()", arg.to_string()), + format!("{}.to_ne_bytes()", arg), Applicability::Unspecified, ); },