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()