diff options
author | Clemens Wasser <[email protected]> | 2021-06-03 12:01:16 +0100 |
---|---|---|
committer | Clemens Wasser <[email protected]> | 2021-06-03 12:01:16 +0100 |
commit | a1e650082b068919f9515330e6d0977c09af190f (patch) | |
tree | 84ad521588a59320edf1cc4cb400bd560802d3d7 /xtask | |
parent | 629e8d1ed0aeabf27a1e1b1d3c8c9134716043e3 (diff) |
Use push_str
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/tidy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/tidy.rs b/xtask/src/tidy.rs index e1a62da27..618cf12fb 100644 --- a/xtask/src/tidy.rs +++ b/xtask/src/tidy.rs | |||
@@ -249,14 +249,14 @@ Zlib OR Apache-2.0 OR MIT | |||
249 | if licenses != expected { | 249 | if licenses != expected { |
250 | let mut diff = String::new(); | 250 | let mut diff = String::new(); |
251 | 251 | ||
252 | diff += &"New Licenses:\n".to_string(); | 252 | diff.push_str("New Licenses:\n"); |
253 | for &l in licenses.iter() { | 253 | for &l in licenses.iter() { |
254 | if !expected.contains(&l) { | 254 | if !expected.contains(&l) { |
255 | diff += &format!(" {}\n", l) | 255 | diff += &format!(" {}\n", l) |
256 | } | 256 | } |
257 | } | 257 | } |
258 | 258 | ||
259 | diff += &"\nMissing Licenses:\n".to_string(); | 259 | diff.push_str("\nMissing Licenses:\n"); |
260 | for &l in expected.iter() { | 260 | for &l in expected.iter() { |
261 | if !licenses.contains(&l) { | 261 | if !licenses.contains(&l) { |
262 | diff += &format!(" {}\n", l) | 262 | diff += &format!(" {}\n", l) |