Skip to content

Commit

Permalink
Update image dep, fix deprecation (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Sep 5, 2024
1 parent f08c2a8 commit 71b484c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ thiserror = "1.0.61"
# NOTE: Make sure to keep this in sync with the version badge in README.md and vello/README.md
wgpu = { version = "22.0.0" }
log = "0.4.21"
image = { version = "0.25.1", default-features = false }
image = { version = "0.25.2", default-features = false }

# Used for examples
clap = "4.5.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/scenes/src/images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl ImageCache {
}

fn decode_image(data: &[u8]) -> anyhow::Result<Image> {
let image = image::io::Reader::new(std::io::Cursor::new(data))
let image = image::ImageReader::new(std::io::Cursor::new(data))
.with_guessed_format()?
.decode()?;
let width = image.width();
Expand Down

0 comments on commit 71b484c

Please sign in to comment.