Skip to content

Commit

Permalink
Update draw_target.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis authored Jul 22, 2024
1 parent 25c147c commit 54796de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/util/draw_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl TestDrawTarget {
}

pub fn expect_image<T>(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()
Expand Down

0 comments on commit 54796de

Please sign in to comment.