summaryrefslogtreecommitdiffstats
path: root/examples/integration
diff options
context:
space:
mode:
authorLibravatar Yuri Astrakhan <YuriAstrakhan@gmail.com>2023-09-19 01:46:46 -0400
committerLibravatar Yuri Astrakhan <YuriAstrakhan@gmail.com>2023-09-19 01:46:46 -0400
commitc997aad85d7ee6e77085e50e5e599002549d228f (patch)
tree926afdae38c6fb6c62b8c892cb61e952fcc4add1 /examples/integration
parent4613eb26cba3ded83f25ebdefd01c983c79a9d59 (diff)
downloadiced-c997aad85d7ee6e77085e50e5e599002549d228f.tar.gz
iced-c997aad85d7ee6e77085e50e5e599002549d228f.tar.bz2
iced-c997aad85d7ee6e77085e50e5e599002549d228f.zip
Chore: Apply clippy map transformations
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
Diffstat (limited to 'examples/integration')
-rw-r--r--examples/integration/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index 7945bd20..243297b2 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -200,8 +200,10 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
viewport.scale_factor(),
)
})
- .map(mouse::Cursor::Available)
- .unwrap_or(mouse::Cursor::Unavailable),
+ .map_or(
+ mouse::Cursor::Unavailable,
+ mouse::Cursor::Available,
+ ),
&mut renderer,
&Theme::Dark,
&renderer::Style {