Sfoglia il codice sorgente

remove redundant call to 'to_string()'

chaz-kiker 3 anni fa
parent
commit
c500466b77
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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> {