Update minimum version of wasm-bindgen (#3860)

This commit is contained in:
daxpedda 2024-08-13 21:54:03 +02:00 committed by GitHub
parent 92e9bfe0fc
commit d96fd02f33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 35 deletions

View file

@ -542,8 +542,8 @@ fn from_rgba(
//
// We call `createImageBitmap()` before spawning the future,
// to not have to clone the image buffer.
let mut options = ImageBitmapOptions::new();
options.premultiply_alpha(PremultiplyAlpha::None);
let options = ImageBitmapOptions::new();
options.set_premultiply_alpha(PremultiplyAlpha::None);
let bitmap = JsFuture::from(
window
.create_image_bitmap_with_image_data_and_image_bitmap_options(&image_data, &options)