Minimized column height: then_some (clippy unnecessary_lazy_evaluations)

This commit is contained in:
aiongg
2026-11-21 04:19:11 +00:00
parent 161d2c0a42
commit c29f9208b4
+1 -1
View File
@@ -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<P>(&self, column: &Column<P>) -> Option<f32> {
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.