From c29f9208b48ebfca9718944ec363c41053ef7de9 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 21 Nov 2026 04:19:11 +0000 Subject: [PATCH] Minimized column height: then_some (clippy unnecessary_lazy_evaluations) --- crates/ui-panels/src/docking/targets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-panels/src/docking/targets.rs b/crates/ui-panels/src/docking/targets.rs index e6d436d5b..ab44830f8 100644 --- a/crates/ui-panels/src/docking/targets.rs +++ b/crates/ui-panels/src/docking/targets.rs @@ -143,7 +143,7 @@ impl DockSizes { /// The height of a column whose every group is minimized: their tab strips, as the column stacks them. `None` /// while a group is open. pub fn minimized_height

(&self, column: &Column

) -> Option { - column.groups.iter().all(|group| group.minimized).then(|| self.strip * column.groups.len() as f32) + column.groups.iter().all(|group| group.minimized).then_some(self.strip * column.groups.len() as f32) } /// The width bounds of an expanded column from the limits of its panels.