diff options
author | 2023-09-19 01:46:46 -0400 | |
---|---|---|
committer | 2023-09-19 01:46:46 -0400 | |
commit | c997aad85d7ee6e77085e50e5e599002549d228f (patch) | |
tree | 926afdae38c6fb6c62b8c892cb61e952fcc4add1 /wgpu/src/triangle.rs | |
parent | 4613eb26cba3ded83f25ebdefd01c983c79a9d59 (diff) | |
download | iced-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 'wgpu/src/triangle.rs')
-rw-r--r-- | wgpu/src/triangle.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index d430e607..7e1bd9cc 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -349,7 +349,7 @@ fn multisample_state( antialiasing: Option<Antialiasing>, ) -> wgpu::MultisampleState { wgpu::MultisampleState { - count: antialiasing.map(|a| a.sample_count()).unwrap_or(1), + count: antialiasing.map_or(1, Antialiasing::sample_count), mask: !0, alpha_to_coverage_enabled: false, } |