Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d.
This commit is contained in:
parent
76873921af
commit
b277625546
7 changed files with 15 additions and 10 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ fn multisample_state(
|
|||
antialiasing: Option<Antialiasing>,
|
||||
) -> wgpu::MultisampleState {
|
||||
wgpu::MultisampleState {
|
||||
count: antialiasing.map_or(1, Antialiasing::sample_count),
|
||||
count: antialiasing.map(|a| a.sample_count()).unwrap_or(1),
|
||||
mask: !0,
|
||||
alpha_to_coverage_enabled: false,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue