updates for clippy 1.62

This commit is contained in:
Folkert 2022-07-05 12:23:27 +02:00
parent 4523e90bc7
commit 9c856fd5ae
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
12 changed files with 75 additions and 56 deletions

View file

@ -14,11 +14,15 @@ use target_lexicon::Triple;
use tempfile::Builder;
fn report_timing(buf: &mut String, label: &str, duration: Duration) {
buf.push_str(&format!(
" {:9.3} ms {}\n",
use std::fmt::Write;
writeln!(
buf,
" {:9.3} ms {}",
duration.as_secs_f64() * 1000.0,
label,
));
)
.unwrap()
}
pub struct BuiltFile {