mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-23 19:30:23 +00:00
scx_layered: Fix linter disagreement
This commit is contained in:
parent
93a0bc9969
commit
56e0dae81d
@ -170,11 +170,7 @@ impl LayerStats {
|
||||
}
|
||||
};
|
||||
let calc_frac = |a, b| {
|
||||
if b != 0.0 {
|
||||
a / b * 100.0
|
||||
} else {
|
||||
0.0
|
||||
}
|
||||
if b != 0.0 { a / b * 100.0 } else { 0.0 }
|
||||
};
|
||||
|
||||
Self {
|
||||
|
Loading…
Reference in New Issue
Block a user