From b49f7dcb4d0973b74110a64ff5f905442cd2f7f1 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 2 Apr 2025 22:22:36 +0300 Subject: layout/scrolling: Use slice::fill() Fix new Clippy warning. --- src/layout/scrolling.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 0fbf4037..29cf9585 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -4167,9 +4167,7 @@ impl Column { 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. } -- cgit