Skip to content

Commit

Permalink
anvil: Don't use type alias for min-ver of image
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Dec 12, 2024
1 parent ceaa97e commit afa1117
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anvil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.0.1"
[dependencies]
bitflags = "2.2.1"
fps_ticker = {version = "1.0.0", optional = true}
image = {version = "0.25.1", default-features = false, optional = true}
image = {version = "0.25.1", default-features = false, optional = true, features = ["png"]}
rand = "0.8"
tracing = { version = "0.1.37", features = ["max_level_trace", "release_max_level_debug"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
Expand Down
3 changes: 2 additions & 1 deletion anvil/src/udev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,9 @@ pub fn run_udev() {

#[cfg(feature = "debug")]
{
#[allow(deprecated)]
let fps_image =
image::ImageReader::with_format(std::io::Cursor::new(FPS_NUMBERS_PNG), image::ImageFormat::Png)
image::io::Reader::with_format(std::io::Cursor::new(FPS_NUMBERS_PNG), image::ImageFormat::Png)
.decode()
.unwrap();
let fps_texture = renderer
Expand Down
3 changes: 2 additions & 1 deletion anvil/src/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ pub fn run_winit() {
output.set_preferred(mode);

#[cfg(feature = "debug")]
#[allow(deprecated)]
let fps_image =
image::ImageReader::with_format(std::io::Cursor::new(FPS_NUMBERS_PNG), image::ImageFormat::Png)
image::io::Reader::with_format(std::io::Cursor::new(FPS_NUMBERS_PNG), image::ImageFormat::Png)
.decode()
.unwrap();
#[cfg(feature = "debug")]
Expand Down
3 changes: 2 additions & 1 deletion anvil/src/x11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ pub fn run_x11() {
};

#[cfg(feature = "debug")]
#[allow(deprecated)]
let fps_image =
image::ImageReader::with_format(std::io::Cursor::new(FPS_NUMBERS_PNG), image::ImageFormat::Png)
image::io::Reader::with_format(std::io::Cursor::new(FPS_NUMBERS_PNG), image::ImageFormat::Png)
.decode()
.unwrap();
#[cfg(feature = "debug")]
Expand Down

0 comments on commit afa1117

Please sign in to comment.