aboutsummaryrefslogtreecommitdiff
path: root/src/layout/scrolling.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-01-10 09:01:23 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-01-10 09:11:31 +0300
commit623687e59baa21c23c2c854b1815cb29e9c5917e (patch)
tree99dbb0f47bec0a5eb8d1454534e6bd100efaf6a8 /src/layout/scrolling.rs
parent5958d3be62b3abe21613567af28beb4d7d118205 (diff)
downloadniri-623687e59baa21c23c2c854b1815cb29e9c5917e.tar.gz
niri-623687e59baa21c23c2c854b1815cb29e9c5917e.tar.bz2
niri-623687e59baa21c23c2c854b1815cb29e9c5917e.zip
Fix new Clippy warnings
Diffstat (limited to 'src/layout/scrolling.rs')
-rw-r--r--src/layout/scrolling.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs
index e54beccb..84ad835e 100644
--- a/src/layout/scrolling.rs
+++ b/src/layout/scrolling.rs
@@ -2469,7 +2469,7 @@ impl<W: LayoutElement> ScrollingSpace<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;
}
@@ -3034,7 +3034,7 @@ impl TileData {
self.interactively_resizing_by_left_edge = tile
.window()
.interactive_resize_data()
- .map_or(false, |data| data.edges.contains(ResizeEdge::LEFT));
+ .is_some_and(|data| data.edges.contains(ResizeEdge::LEFT));
}
}