decoder: Fix clippy warning

This commit is contained in:
Sophie Herold 2025-12-04 05:35:00 +01:00
parent 71351a0c03
commit def2e8966f

View file

@ -210,7 +210,7 @@ impl Decoder {
// - image/svg+xml // - image/svg+xml
// - image/svg+xml-compressed // - image/svg+xml-compressed
if mime_type.split('+').next() == Some("image/svg") { if mime_type.split('+').next() == Some("image/svg") {
return FormatDecoder::Svg(Svg::new(image, update_sender, tiles)); FormatDecoder::Svg(Svg::new(image, update_sender, tiles))
} else { } else {
FormatDecoder::Glycin(Glycin::new(image, update_sender, tiles)) FormatDecoder::Glycin(Glycin::new(image, update_sender, tiles))
} }