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/scrolling.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/scrolling.rs')
| -rw-r--r-- | src/layout/scrolling.rs | 4 |
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)); } } |
