minor: use name SVG over extension svg to identify errors

since the extension could be svg or svgz
This commit is contained in:
electria 2026-08-14 10:53:07 -07:00
commit 16e13be214
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -53,7 +53,7 @@ fn to_image_error(
e: impl Into<Box<dyn std::error::Error + std::marker::Send + Sync + 'static>>, e: impl Into<Box<dyn std::error::Error + std::marker::Send + Sync + 'static>>,
) -> ImageError { ) -> ImageError {
ImageError::Decoding(DecodingError::new( ImageError::Decoding(DecodingError::new(
image::error::ImageFormatHint::PathExtension("svg".into()), image::error::ImageFormatHint::Name("SVG".into()),
e, e,
)) ))
} }