Skip to content

Commit 59a58e4

Browse files
authored
Bump image from 0.25.1 to 0.25.8 (#972)
1 parent c419a83 commit 59a58e4

File tree

5 files changed

+94
-45
lines changed

5 files changed

+94
-45
lines changed

Cargo.lock

Lines changed: 90 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modeling-session/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ uuid = { version = "1.16.0", features = ["v4"] }
2424

2525
[dev-dependencies]
2626
color-eyre = "0.6"
27-
image = "0.25.1"
27+
image = "0.25.8"
2828
tokio = { version = "1", features = ["rt", "macros"] }
2929

3030
[lints]

modeling-session/examples/cube_png.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async fn main() -> Result<()> {
131131
// Save the PNG to disk.
132132
match snapshot_resp {
133133
OkModelingCmdResponse::TakeSnapshot(snap) => {
134-
let mut img = image::io::Reader::new(Cursor::new(snap.contents));
134+
let mut img = image::ImageReader::new(Cursor::new(snap.contents));
135135
img.set_format(image::ImageFormat::Png);
136136
let img = img.decode().context("could not decode PNG bytes")?;
137137
img.save(img_output_path).context("could not save PNG to disk")?;

modeling-session/examples/cube_png_batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async fn main() -> Result<()> {
125125
// Save the PNG to disk.
126126
match snapshot_resp {
127127
OkModelingCmdResponse::TakeSnapshot(snap) => {
128-
let mut img = image::io::Reader::new(Cursor::new(snap.contents));
128+
let mut img = image::ImageReader::new(Cursor::new(snap.contents));
129129
img.set_format(image::ImageFormat::Png);
130130
let img = img.decode().context("could not decode PNG bytes")?;
131131
img.save(img_output_path).context("could not save PNG to disk")?;

modeling-session/examples/lsystem_png_batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async fn main() -> Result<()> {
163163
// Save the PNG to disk.
164164
match snapshot_resp {
165165
OkModelingCmdResponse::TakeSnapshot(snap) => {
166-
let mut img = image::io::Reader::new(Cursor::new(snap.contents));
166+
let mut img = image::ImageReader::new(Cursor::new(snap.contents));
167167
img.set_format(image::ImageFormat::Png);
168168
let img = img.decode().context("could not decode PNG bytes")?;
169169
img.save(img_output_path).context("could not save PNG to disk")?;

0 commit comments

Comments
 (0)