diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-10 09:01:23 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-10 09:11:31 +0300 |
| commit | 623687e59baa21c23c2c854b1815cb29e9c5917e (patch) | |
| tree | 99dbb0f47bec0a5eb8d1454534e6bd100efaf6a8 /src/layout/monitor.rs | |
| parent | 5958d3be62b3abe21613567af28beb4d7d118205 (diff) | |
| download | niri-623687e59baa21c23c2c854b1815cb29e9c5917e.tar.gz niri-623687e59baa21c23c2c854b1815cb29e9c5917e.tar.bz2 niri-623687e59baa21c23c2c854b1815cb29e9c5917e.zip | |
Fix new Clippy warnings
Diffstat (limited to 'src/layout/monitor.rs')
| -rw-r--r-- | src/layout/monitor.rs | 6 |
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; } |
