mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Use push_str
This commit is contained in:
parent
629e8d1ed0
commit
a1e650082b
1 changed files with 2 additions and 2 deletions
|
@ -249,14 +249,14 @@ Zlib OR Apache-2.0 OR MIT
|
||||||
if licenses != expected {
|
if licenses != expected {
|
||||||
let mut diff = String::new();
|
let mut diff = String::new();
|
||||||
|
|
||||||
diff += &"New Licenses:\n".to_string();
|
diff.push_str("New Licenses:\n");
|
||||||
for &l in licenses.iter() {
|
for &l in licenses.iter() {
|
||||||
if !expected.contains(&l) {
|
if !expected.contains(&l) {
|
||||||
diff += &format!(" {}\n", l)
|
diff += &format!(" {}\n", l)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
diff += &"\nMissing Licenses:\n".to_string();
|
diff.push_str("\nMissing Licenses:\n");
|
||||||
for &l in expected.iter() {
|
for &l in expected.iter() {
|
||||||
if !licenses.contains(&l) {
|
if !licenses.contains(&l) {
|
||||||
diff += &format!(" {}\n", l)
|
diff += &format!(" {}\n", l)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue