enable clippy pedantic for nova-stats, fix all warnings
This commit is contained in:
parent
64d0172bee
commit
e30cae5c7f
5 changed files with 15 additions and 17 deletions
|
|
@ -56,11 +56,7 @@ pub fn emit_cpu(out: &mut impl Write, prev: &[Sample], curr: &[Sample], freqs: &
|
|||
return;
|
||||
}
|
||||
|
||||
let usage = prev
|
||||
.first()
|
||||
.zip(curr.first())
|
||||
.map(|(p, c)| pct(p, c))
|
||||
.unwrap_or(0);
|
||||
let usage = prev.first().zip(curr.first()).map_or(0, |(p, c)| pct(p, c));
|
||||
|
||||
let core_usage: Vec<u32> = prev
|
||||
.iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue