summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:21:46 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:37:13 +0100
commit28caeccf22d163e9014b5ed26334b6085683a28b (patch)
treeaa500bcdeeda7e18f72803e5aaa74838920f7cc1
parent67e489e382e98fc5d101b7892f1c7e44563d60f5 (diff)
downloadiced-28caeccf22d163e9014b5ed26334b6085683a28b.tar.gz
iced-28caeccf22d163e9014b5ed26334b6085683a28b.tar.bz2
iced-28caeccf22d163e9014b5ed26334b6085683a28b.zip
Fix new `clippy` lints
-rw-r--r--widget/src/pane_grid.rs10
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 {