mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Update image crate to 0.25 (#4160)
To not produce duplicating deps in Rerun (https://github.com/rerun-io/rerun/pull/5280) I suggest we wait with merging this until these crates have updated to `image` 0.25: * [x] [`arboard`](https://crates.io/crates/arboard) * [x] [`gltf`](https://crates.io/crates/gltf)
This commit is contained in:
@@ -54,7 +54,7 @@ impl IconDataExt for IconData {
|
||||
image
|
||||
.write_to(
|
||||
&mut std::io::Cursor::new(&mut png_bytes),
|
||||
image::ImageOutputFormat::Png,
|
||||
image::ImageFormat::Png,
|
||||
)
|
||||
.map_err(|err| err.to_string())?;
|
||||
Ok(png_bytes)
|
||||
|
||||
@@ -118,7 +118,7 @@ fn set_app_icon_windows(icon_data: &IconData) -> AppIconStatus {
|
||||
if image_scaled
|
||||
.write_to(
|
||||
&mut std::io::Cursor::new(&mut image_scaled_bytes),
|
||||
image::ImageOutputFormat::Png,
|
||||
image::ImageFormat::Png,
|
||||
)
|
||||
.is_err()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user