diff --git a/.changes/png-0.18.md b/.changes/png-0.18.md new file mode 100644 index 000000000000..73bdce2a2f9f --- /dev/null +++ b/.changes/png-0.18.md @@ -0,0 +1,5 @@ +--- +tauri-codegen: patch:deps +--- + +Updated `png` crate to `0.18` diff --git a/Cargo.lock b/Cargo.lock index 5d626308dac3..36ee4884fee9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9066,7 +9066,7 @@ dependencies = [ "ico", "json-patch", "plist", - "png 0.17.16", + "png 0.18.1", "proc-macro2", "quote", "semver", diff --git a/crates/tauri-codegen/Cargo.toml b/crates/tauri-codegen/Cargo.toml index 6a0cf17e260c..01270765a142 100644 --- a/crates/tauri-codegen/Cargo.toml +++ b/crates/tauri-codegen/Cargo.toml @@ -29,7 +29,7 @@ brotli = { version = "8", optional = true, default-features = false, features = uuid = { version = "1", features = ["v4"] } semver = "1" ico = "0.5" -png = "0.17" +png = "0.18" json-patch = "4" url = "2" diff --git a/crates/tauri-codegen/src/image.rs b/crates/tauri-codegen/src/image.rs index 49546082a9b7..8affdfbcccff 100644 --- a/crates/tauri-codegen/src/image.rs +++ b/crates/tauri-codegen/src/image.rs @@ -83,7 +83,7 @@ impl CachedIcon { panic!("icon {} is not RGBA", icon.display()); } - let mut rgba = Vec::with_capacity(reader.output_buffer_size()); + let mut rgba = Vec::with_capacity(reader.output_buffer_size().unwrap()); while let Ok(Some(row)) = reader.next_row() { rgba.extend(row.data()); }