Skip to content

Commit b135d71

Browse files
committed
remove unnecessary to_string
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent f3c3f0e commit b135d71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dist/dist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn components_missing_msg(cs: &[Component], manifest: &ManifestV2, toolchain: &s
5252
);
5353

5454
if toolchain.starts_with("nightly") {
55-
let _ = write!(buf, "{}", nightly_tips.to_string());
55+
let _ = write!(buf, "{}", nightly_tips);
5656
}
5757

5858
let _ = write!(
@@ -73,7 +73,7 @@ fn components_missing_msg(cs: &[Component], manifest: &ManifestV2, toolchain: &s
7373
);
7474

7575
if toolchain.starts_with("nightly") {
76-
let _ = write!(buf, "{}", nightly_tips.to_string());
76+
let _ = write!(buf, "{}", nightly_tips);
7777
}
7878
let _ = write!(
7979
buf,

0 commit comments

Comments
 (0)