Skip to content
This repository was archived by the owner on Jun 23, 2022. It is now read-only.

Commit 3891bad

Browse files
committed
Update the deps
1 parent f912807 commit 3891bad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gif = { version = "0.10.3", optional = true }
1919
version = "0.23.9"
2020
optional = true
2121
default-features = false
22-
features = ["jpeg", "png_codec", "bmp"]
22+
features = ["jpeg", "png", "bmp"]
2323

2424
[features]
2525
default = ["image_encoder", "gif_backend"]

src/bitmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ impl<'a, P: PixelFormat> DrawingBackend for BitMapBackend<'a, P> {
864864
Target::File(path) => {
865865
if let Some(img) = BorrowedImage::from_raw(w, h, self.buffer.borrow_buffer()) {
866866
img.save(&path).map_err(|x| {
867-
DrawingErrorKind::DrawingError(BitMapBackendError::IOError(x))
867+
DrawingErrorKind::DrawingError(BitMapBackendError::ImageError(x))
868868
})?;
869869
self.saved = true;
870870
Ok(())

0 commit comments

Comments
 (0)