From d1837745acd43435b9da944283cbf2365c5f10cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Tue, 30 Jan 2024 02:14:55 +0100 Subject: [PATCH] directly return Option instead of WasmOption (#823) --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0558594..6144023 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,7 @@ coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_ coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] } [target.'cfg(target_os = "emscripten")'.dependencies] -wasm-bindgen = { version = "0.2.58" } +wasm-bindgen = { version = "0.2.89" } wasm-bindgen-futures = "0.4.33" js-sys = { version = "0.3.35" } web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"] } diff --git a/src/lib.rs b/src/lib.rs index a85b8c9..fe14f84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -243,7 +243,7 @@ impl wasm_bindgen::describe::WasmDescribe for BufferSize { #[cfg(target_os = "emscripten")] impl wasm_bindgen::convert::IntoWasmAbi for BufferSize { - type Abi = wasm_bindgen::convert::WasmOption; + type Abi = Option; fn into_abi(self) -> Self::Abi { match self { Self::Default => None,