Skip to content

Commit

Permalink
Update image to 0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 authored and complexspaces committed Apr 9, 2024
1 parent dc8a4bd commit f6fc4ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
41 changes: 6 additions & 35 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ objc = "0.2"
objc_id = "0.1"
objc-foundation = "0.1"
core-graphics = { version = "0.23", optional = true }
image = { version = "0.24", optional = true, default-features = false, features = ["tiff"] }
image = { version = "0.25", optional = true, default-features = false, features = ["tiff"] }

[target.'cfg(all(unix, not(any(target_os="macos", target_os="android", target_os="emscripten"))))'.dependencies]
log = "0.4"
x11rb = { version = "0.13" }
wl-clipboard-rs = { version = "0.8", optional = true }
image = { version = "0.24", optional = true, default-features = false, features = ["png"] }
image = { version = "0.25", optional = true, default-features = false, features = ["png"] }
parking_lot = "0.12"

[[example]]
Expand Down
2 changes: 1 addition & 1 deletion src/platform/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn encode_as_png(image: &ImageData) -> Result<Vec<u8>, Error> {
image.bytes.as_ref(),
image.width as u32,
image.height as u32,
image::ColorType::Rgba8,
image::ExtendedColorType::Rgba8,
)
.map_err(|_| Error::ConversionFailure)?;

Expand Down

0 comments on commit f6fc4ea

Please sign in to comment.