Skip to content

Commit

Permalink
Simplify oddly complex expression
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Sep 25, 2024
1 parent e8e13fb commit 7638826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/renderers/skia/itemrenderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl<'a> SkiaItemRenderer<'a> {
})
});

let skia_image = if let Some(img) = skia_image { img } else { return };
let Some(skia_image) = skia_image else { return };
let source = item.source();
let source_size = source.size();
let fits = if let &i_slint_core::ImageInner::NineSlice(ref nine) = (&source).into() {
Expand Down

0 comments on commit 7638826

Please sign in to comment.