directly return Option instead of WasmOption (#823)
This commit is contained in:
parent
5a96f6e7f0
commit
d1837745ac
2 changed files with 2 additions and 2 deletions
|
|
@ -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"] }
|
||||
|
|
|
|||
|
|
@ -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<u32>;
|
||||
type Abi = Option<u32>;
|
||||
fn into_abi(self) -> Self::Abi {
|
||||
match self {
|
||||
Self::Default => None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue