summaryrefslogtreecommitdiffstats
path: root/examples/integration
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 16:26:43 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 16:26:43 +0200
commitb27762554627b8e89f2b840b1a8a512e22d4cd87 (patch)
tree4099870d14980fb2651dc50786639ca704a55074 /examples/integration
parent76873921af3cd04ac0cbed01ebbd66936454dbe3 (diff)
downloadiced-b27762554627b8e89f2b840b1a8a512e22d4cd87.tar.gz
iced-b27762554627b8e89f2b840b1a8a512e22d4cd87.tar.bz2
iced-b27762554627b8e89f2b840b1a8a512e22d4cd87.zip
Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d7ee6e77085e50e5e599002549d228f.
Diffstat (limited to 'examples/integration')
-rw-r--r--examples/integration/src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index 4415fefa..c26d52fe 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -200,10 +200,8 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
viewport.scale_factor(),
)
})
- .map_or(
- mouse::Cursor::Unavailable,
- mouse::Cursor::Available,
- ),
+ .map(mouse::Cursor::Available)
+ .unwrap_or(mouse::Cursor::Unavailable),
&mut renderer,
&Theme::Dark,
&renderer::Style {