From ead7e6e941e85002a61a912dbf0eebb4521f7808 Mon Sep 17 00:00:00 2001 From: Charlotte McElwain Date: Sun, 21 Jul 2024 13:03:04 -0700 Subject: [PATCH] Fix breaking image 0.25.2 release. --- crates/bevy_render/src/texture/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index 28de7cd4869a7..3556c1c6212c6 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -744,7 +744,7 @@ impl Image { let image_crate_format = format .as_image_crate_format() .ok_or_else(|| TextureError::UnsupportedTextureFormat(format!("{format:?}")))?; - let mut reader = image::io::Reader::new(std::io::Cursor::new(buffer)); + let mut reader = image::ImageReader::new(std::io::Cursor::new(buffer)); reader.set_format(image_crate_format); reader.no_limits(); let dyn_img = reader.decode()?;