Skip to content

Commit 571f4eb

Browse files
committed
Remove unnecessary to_string in transmute_num_to_bytes.rs
1 parent ef69735 commit 571f4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/transmute/transmute_num_to_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub(super) fn check<'tcx>(
3737
diag.span_suggestion(
3838
e.span,
3939
"consider using `to_ne_bytes()`",
40-
format!("{}.to_ne_bytes()", arg.to_string()),
40+
format!("{}.to_ne_bytes()", arg),
4141
Applicability::Unspecified,
4242
);
4343
},

0 commit comments

Comments
 (0)