directly return Option instead of WasmOption (#823)

This commit is contained in:
François 2024-01-30 02:14:55 +01:00 • committed by GitHub
parent 5a96f6e7f0
commit d1837745ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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"] } coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] }
[target.'cfg(target_os = "emscripten")'.dependencies] [target.'cfg(target_os = "emscripten")'.dependencies]
wasm-bindgen = { version = "0.2.58" } wasm-bindgen = { version = "0.2.89" }
wasm-bindgen-futures = "0.4.33" wasm-bindgen-futures = "0.4.33"
js-sys = { version = "0.3.35" } js-sys = { version = "0.3.35" }
web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"] } web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"] }

View file

@ -243,7 +243,7 @@ impl wasm_bindgen::describe::WasmDescribe for BufferSize {
#[cfg(target_os = "emscripten")] #[cfg(target_os = "emscripten")]
impl wasm_bindgen::convert::IntoWasmAbi for BufferSize { impl wasm_bindgen::convert::IntoWasmAbi for BufferSize {
type Abi = wasm_bindgen::convert::WasmOption<u32>; type Abi = Option<u32>;
fn into_abi(self) -> Self::Abi { fn into_abi(self) -> Self::Abi {
match self { match self {
Self::Default => None, Self::Default => None,