mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
Minimized column height: then_some (clippy unnecessary_lazy_evaluations)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user