if std::env::var("RA_METRICS").is_err() {
return;
}
- println!("METRIC:{}:{}:{}", metric, value, unit)
+ println!("METRIC:{metric}:{value}:{unit}")
}
fn print_memory_usage(mut host: AnalysisHost, vfs: Vfs) {
for (name, bytes) in mem {
// NOTE: Not a debug print, so avoid going through the `eprintln` defined above.
- eprintln!("{:>8} {}", bytes, name);
+ eprintln!("{bytes:>8} {name}");
}
}