From d9837200c391ec0b75159b62a93888f3aa2a5253 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 12:37:01 -0700 Subject: [PATCH] style(mac): fill resize_dimensions with None in one call (clippy::manual_slice_fill) window_manager.rs reset every entry of workspace.resize_dimensions in a for loop; fill(None) does the same. No behaviour change. Pre-existing on the original macOS tip 9a58e511 (reported by cargo clippy --all-targets -D warnings on the Mini, stable 1.93). Verified: fake-CC cargo clippy --locked --target aarch64-apple-darwin -p komorebi --all-targets -D warnings no longer reports this lint (the last hygiene revision records the whole run). Verified on the Mini: not yet. --- komorebi-for-mac/komorebi/src/window_manager.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/komorebi-for-mac/komorebi/src/window_manager.rs b/komorebi-for-mac/komorebi/src/window_manager.rs index c7435da3..48d66dac 100644 --- a/komorebi-for-mac/komorebi/src/window_manager.rs +++ b/komorebi-for-mac/komorebi/src/window_manager.rs @@ -2265,9 +2265,7 @@ impl WindowManager { // Reset any resize adjustments if we want to force a retile if !preserve_resize_dimensions { - for resize in &mut workspace.resize_dimensions { - *resize = None; - } + workspace.resize_dimensions.fill(None); // and the widths and heights of the Scrolling layout, which are resize // adjustments too