Skip to content

Commit d183774

Browse files
authored
directly return Option instead of WasmOption (#823)
1 parent 5a96f6e commit d183774

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_
6161
coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] }
6262

6363
[target.'cfg(target_os = "emscripten")'.dependencies]
64-
wasm-bindgen = { version = "0.2.58" }
64+
wasm-bindgen = { version = "0.2.89" }
6565
wasm-bindgen-futures = "0.4.33"
6666
js-sys = { version = "0.3.35" }
6767
web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"] }

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl wasm_bindgen::describe::WasmDescribe for BufferSize {
243243

244244
#[cfg(target_os = "emscripten")]
245245
impl wasm_bindgen::convert::IntoWasmAbi for BufferSize {
246-
type Abi = wasm_bindgen::convert::WasmOption<u32>;
246+
type Abi = Option<u32>;
247247
fn into_abi(self) -> Self::Abi {
248248
match self {
249249
Self::Default => None,

0 commit comments

Comments
 (0)