scx_layered: Fix linter disagreement

This commit is contained in:
Tejun Heo 2024-11-17 06:03:30 -10:00
parent 93a0bc9969
commit 56e0dae81d

View File

@ -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 {