mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
layout/scrolling: Use slice::fill()
Fix new Clippy warning.
This commit is contained in:
@@ -4167,9 +4167,7 @@ impl<W: LayoutElement> Column<W> {
|
|||||||
let min_height = f64::min(max_tile_height, min_height);
|
let min_height = f64::min(max_tile_height, min_height);
|
||||||
let tabbed_height = f64::max(tabbed_height, min_height);
|
let tabbed_height = f64::max(tabbed_height, min_height);
|
||||||
|
|
||||||
for h in &mut heights {
|
heights.fill(WindowHeight::Fixed(tabbed_height));
|
||||||
*h = WindowHeight::Fixed(tabbed_height);
|
|
||||||
}
|
|
||||||
|
|
||||||
// The following logic will apply individual min/max height, etc.
|
// The following logic will apply individual min/max height, etc.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user