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

@ -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,