aboutsummaryrefslogtreecommitdiff
path: root/src/layout/monitor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/monitor.rs')
-rw-r--r--src/layout/monitor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs
index 70009d67..8bb92a33 100644
--- a/src/layout/monitor.rs
+++ b/src/layout/monitor.rs
@@ -165,7 +165,7 @@ impl<W: LayoutElement> Monitor<W> {
self.workspaces.iter().find(|ws| {
ws.name
.as_ref()
- .map_or(false, |name| name.eq_ignore_ascii_case(workspace_name))
+ .is_some_and(|name| name.eq_ignore_ascii_case(workspace_name))
})
}
@@ -173,7 +173,7 @@ impl<W: LayoutElement> Monitor<W> {
self.workspaces.iter().position(|ws| {
ws.name
.as_ref()
- .map_or(false, |name| name.eq_ignore_ascii_case(workspace_name))
+ .is_some_and(|name| name.eq_ignore_ascii_case(workspace_name))
})
}
@@ -1074,7 +1074,7 @@ impl<W: LayoutElement> Monitor<W> {
return false;
};
- if is_touchpad.map_or(false, |x| gesture.is_touchpad != x) {
+ if is_touchpad.is_some_and(|x| gesture.is_touchpad != x) {
return false;
}