diff options
author | 2023-09-19 13:22:21 +0200 | |
---|---|---|
committer | 2023-09-19 13:22:21 +0200 | |
commit | 582da10ae2465a7a65ea062347b8f14fba8e6064 (patch) | |
tree | e4be970e1f7614e79e5303a391b77858cc03121e /examples/integration/src | |
parent | a4dbf0788716e8b83a9f37963ef685b765a326c6 (diff) | |
parent | c997aad85d7ee6e77085e50e5e599002549d228f (diff) | |
download | iced-582da10ae2465a7a65ea062347b8f14fba8e6064.tar.gz iced-582da10ae2465a7a65ea062347b8f14fba8e6064.tar.bz2 iced-582da10ae2465a7a65ea062347b8f14fba8e6064.zip |
Merge pull request #2090 from nyurik/mapping
Chore: Apply clippy map transformations
Diffstat (limited to 'examples/integration/src')
-rw-r--r-- | examples/integration/src/main.rs | 6 |
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 { |