Merge pull request #2090 from nyurik/mapping

Chore: Apply clippy map transformations
This commit is contained in:
Héctor Ramón 2023-09-19 13:22:21 +02:00 committed by GitHub
commit 582da10ae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 15 deletions

View file

@ -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()) {