mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
updates for clippy 1.62
This commit is contained in:
parent
4523e90bc7
commit
9c856fd5ae
12 changed files with 75 additions and 56 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue