mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-27 10:52:52 +01:00
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.
This commit is contained in:
1 parent
756a03cc77
commit
d9837200c3
1 file changed
+1
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user