Selaa lähdekoodia

remove redundant call to 'to_string()'

chaz-kiker 3 vuotta sitten
vanhempi
commit
c500466b77
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/interactions.rs

+ 1 - 1
src/interactions.rs

@@ -58,7 +58,7 @@ static START_BOT: &str = "<!-- TRIAGEBOT_START -->\n\n";
 static END_BOT: &str = "<!-- TRIAGEBOT_END -->";
 
 fn normalize_body(body: &str) -> String {
-    str::replace(body, "\r\n", "\n").to_string()
+    str::replace(body, "\r\n", "\n")
 }
 
 impl<'a> EditIssueBody<'a> {