We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
to_string
1 parent ef69735 commit 571f4ebCopy full SHA for 571f4eb
clippy_lints/src/transmute/transmute_num_to_bytes.rs
@@ -37,7 +37,7 @@ pub(super) fn check<'tcx>(
37
diag.span_suggestion(
38
e.span,
39
"consider using `to_ne_bytes()`",
40
- format!("{}.to_ne_bytes()", arg.to_string()),
+ format!("{}.to_ne_bytes()", arg),
41
Applicability::Unspecified,
42
);
43
},
0 commit comments