Skip to content

Commit

Permalink
Fixing compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Jul 16, 2019
1 parent ae71087 commit 632ad64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/convert/slices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ if_std! {
impl OptionIntoWasmAbi for String {
#[inline]
fn none() -> Self::Abi {
<JsValue as OptionIntoWasmAbi>::none()
JsValue::UNDEFINED.into_abi()
}
}

Expand All @@ -172,8 +172,8 @@ if_std! {
type Abi = <Vec<u8> as IntoWasmAbi>::Abi;

#[inline]
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi {
self.into_bytes().into_abi(extra)
fn into_abi(self) -> Self::Abi {
self.into_bytes().into_abi()
}
}

Expand Down Expand Up @@ -213,7 +213,7 @@ cfg_if! {
impl<'a> OptionIntoWasmAbi for &'a str {
#[inline]
fn none() -> Self::Abi {
<JsValue as OptionIntoWasmAbi>::none()
JsValue::UNDEFINED.into_abi()
}
}

Expand All @@ -222,8 +222,8 @@ cfg_if! {
type Abi = <&'a [u8] as IntoWasmAbi>::Abi;

#[inline]
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi {
self.as_bytes().into_abi(extra)
fn into_abi(self) -> Self::Abi {
self.as_bytes().into_abi()
}
}

Expand Down

0 comments on commit 632ad64

Please sign in to comment.