Use push_str

This commit is contained in:
Clemens Wasser 2021-06-03 13:01:16 +02:00
parent 629e8d1ed0
commit a1e650082b

View File

@ -249,14 +249,14 @@ fn check_licenses() {
if licenses != expected {
let mut diff = String::new();
diff += &"New Licenses:\n".to_string();
diff.push_str("New Licenses:\n");
for &l in licenses.iter() {
if !expected.contains(&l) {
diff += &format!(" {}\n", l)
}
}
diff += &"\nMissing Licenses:\n".to_string();
diff.push_str("\nMissing Licenses:\n");
for &l in expected.iter() {
if !licenses.contains(&l) {
diff += &format!(" {}\n", l)