From a1e650082b068919f9515330e6d0977c09af190f Mon Sep 17 00:00:00 2001 From: Clemens Wasser Date: Thu, 3 Jun 2021 13:01:16 +0200 Subject: Use push_str --- xtask/src/tidy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src') 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 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) -- cgit v1.2.3