minor: use name SVG over extension svg to identify errors
since the extension could be svg or svgz
This commit is contained in:
parent
a87a7bc0a1
commit
16e13be214
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ fn to_image_error(
|
|||
e: impl Into<Box<dyn std::error::Error + std::marker::Send + Sync + 'static>>,
|
||||
) -> ImageError {
|
||||
ImageError::Decoding(DecodingError::new(
|
||||
image::error::ImageFormatHint::PathExtension("svg".into()),
|
||||
image::error::ImageFormatHint::Name("SVG".into()),
|
||||
e,
|
||||
))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue