From 231d494cb6abe8f2231dd4d706778598ebb9639e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 21:13:07 +0200 Subject: [PATCH] Update image requirement from 0.24.3 to 0.25.2 (#26) * Update image requirement from 0.24.3 to 0.25.2 Updates the requirements on [image](https://github.com/image-rs/image) to permit the latest version. - [Changelog](https://github.com/image-rs/image/blob/main/CHANGES.md) - [Commits](https://github.com/image-rs/image/compare/v0.24.3...v0.25.2) --- updated-dependencies: - dependency-name: image dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Update draw_target.rs --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Finomnis --- Cargo.toml | 2 +- tests/util/draw_target.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0832788..f55ffd8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ embedded-graphics-core = "0.4.0" embedded-graphics = { version = "0.8.0", optional = true } [dev-dependencies] -image = "0.24.3" +image = "0.25.2" base64 = "0.22.1" [package.metadata.docs.rs] diff --git a/tests/util/draw_target.rs b/tests/util/draw_target.rs index 35ffd9f..cb3adb6 100644 --- a/tests/util/draw_target.rs +++ b/tests/util/draw_target.rs @@ -21,7 +21,7 @@ impl TestDrawTarget { } pub fn expect_image(image_data: &'static [u8], render: impl FnOnce(&mut Self) -> T) -> T { - let expected_image: RgbImage = image::io::Reader::new(Cursor::new(image_data)) + let expected_image: RgbImage = image::ImageReader::new(Cursor::new(image_data)) .with_guessed_format() .expect("Reference image data is not a recognized image format!") .decode()