layout/scrolling: Use slice::fill()

Fix new Clippy warning.
This commit is contained in:
Ivan Molodetskikh
2025-04-02 22:22:36 +03:00
parent 60034a57ef
commit b49f7dcb4d
+1 -3
View File
@@ -4167,9 +4167,7 @@ impl<W: LayoutElement> Column<W> {
let min_height = f64::min(max_tile_height, min_height);
let tabbed_height = f64::max(tabbed_height, min_height);
for h in &mut heights {
*h = WindowHeight::Fixed(tabbed_height);
}
heights.fill(WindowHeight::Fixed(tabbed_height));
// The following logic will apply individual min/max height, etc.
}