Revert "Chore: Apply clippy map transformations"

This reverts commit c997aad85d.
This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 16:26:43 +02:00
parent 76873921af
commit b277625546
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 15 additions and 10 deletions

View file

@ -56,7 +56,7 @@ impl Cache {
.ok()
});
tree.map_or(Svg::NotFound, Svg::Loaded)
tree.map(Svg::Loaded).unwrap_or(Svg::NotFound)
}
svg::Data::Bytes(bytes) => {
match usvg::Tree::from_data(bytes, &usvg::Options::default()) {