diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-02 22:22:36 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-03 19:25:56 +0300 |
| commit | b49f7dcb4d0973b74110a64ff5f905442cd2f7f1 (patch) | |
| tree | 134e2a2637a9ca7948cbb09888dd28191d070fb1 | |
| parent | 60034a57efd9c8130b05797b37cbc187a8c13145 (diff) | |
| download | niri-b49f7dcb4d0973b74110a64ff5f905442cd2f7f1.tar.gz niri-b49f7dcb4d0973b74110a64ff5f905442cd2f7f1.tar.bz2 niri-b49f7dcb4d0973b74110a64ff5f905442cd2f7f1.zip | |
layout/scrolling: Use slice::fill()
Fix new Clippy warning.
| -rw-r--r-- | src/layout/scrolling.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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<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. } |
