Skip to content

Commit a1e6500

Browse files
committed
Use push_str
1 parent 629e8d1 commit a1e6500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xtask/src/tidy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,14 @@ Zlib OR Apache-2.0 OR MIT
249249
if licenses != expected {
250250
let mut diff = String::new();
251251

252-
diff += &"New Licenses:\n".to_string();
252+
diff.push_str("New Licenses:\n");
253253
for &l in licenses.iter() {
254254
if !expected.contains(&l) {
255255
diff += &format!(" {}\n", l)
256256
}
257257
}
258258

259-
diff += &"\nMissing Licenses:\n".to_string();
259+
diff.push_str("\nMissing Licenses:\n");
260260
for &l in expected.iter() {
261261
if !licenses.contains(&l) {
262262
diff += &format!(" {}\n", l)

0 commit comments

Comments
 (0)