Skip to content

Commit add781b

Browse files
authored
Merge pull request #2612 from alion02/fix-png-error
Fix `PngEncoder` returning wrong `ImageFormat` in `ImageError`
2 parents 8b0881b + ed5a70d commit add781b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codecs/png.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ impl<W: Write> ImageEncoder for PngEncoder<W> {
731731
}
732732
_ => Err(ImageError::Unsupported(
733733
UnsupportedError::from_format_and_kind(
734-
ImageFormat::Hdr.into(),
734+
ImageFormat::Png.into(),
735735
UnsupportedErrorKind::Color(color_type),
736736
),
737737
)),

0 commit comments

Comments
 (0)