diff options
-rw-r--r-- | widget/src/pane_grid.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/widget/src/pane_grid.rs b/widget/src/pane_grid.rs index c0ff97fc..db93c724 100644 --- a/widget/src/pane_grid.rs +++ b/widget/src/pane_grid.rs @@ -463,7 +463,7 @@ where .filter(|(((pane, _), _), _)| { self.internal .maximized() - .map_or(true, |maximized| *pane == maximized) + .is_none_or(|maximized| *pane == maximized) }) .for_each(|(((_, content), state), layout)| { content.operate(state, layout, renderer, operation); @@ -503,7 +503,7 @@ where .filter(|(((pane, _), _), _)| { self.internal .maximized() - .map_or(true, |maximized| *pane == maximized) + .is_none_or(|maximized| *pane == maximized) }) { let is_picked = picked_pane == Some(pane); @@ -691,7 +691,7 @@ where .filter(|((pane, _content), _layout)| { self.internal .maximized() - .map_or(true, |maximized| **pane == maximized) + .is_none_or(|maximized| **pane == maximized) }) .find_map(|((_pane, content), layout)| { content.grid_interaction( @@ -738,7 +738,7 @@ where .filter(|(((pane, _), _), _)| { self.internal .maximized() - .map_or(true, |maximized| *pane == maximized) + .is_none_or(|maximized| *pane == maximized) }) .map(|(((_, content), tree), layout)| { content.mouse_interaction( @@ -846,7 +846,7 @@ where .filter(|(((pane, _), _), _)| { self.internal .maximized() - .map_or(true, |maximized| maximized == *pane) + .is_none_or(|maximized| maximized == *pane) }) { match picked_pane { |