Skip to content

Commit

Permalink
Remove unnecessary to_string in transmute_num_to_bytes.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Oct 14, 2021
1 parent ef69735 commit 571f4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/transmute/transmute_num_to_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
},
Expand Down

0 comments on commit 571f4eb

Please sign in to comment.