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/image | |
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/image')
-rw-r--r-- | wgpu/src/image/vector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/image/vector.rs b/wgpu/src/image/vector.rs index 2c03d36b..1ac82bc7 100644 --- a/wgpu/src/image/vector.rs +++ b/wgpu/src/image/vector.rs @@ -56,7 +56,7 @@ impl Cache { .ok() }); - tree.map(Svg::Loaded).unwrap_or(Svg::NotFound) + tree.map_or(Svg::NotFound, Svg::Loaded) } svg::Data::Bytes(bytes) => { match usvg::Tree::from_data(bytes, &usvg::Options::default()) { |