Add #[inline] for IntoWasmAbi for ()

No need for it to not be inlined, it literally compiles to nothing!
This commit is contained in:
Alex Crichton 2018-09-26 09:21:31 -07:00
parent 35a7233101
commit 5a0ac2d37c

View File

@ -396,6 +396,7 @@ impl<T: FromWasmAbi> FromWasmAbi for Clamped<T> {
impl IntoWasmAbi for () { impl IntoWasmAbi for () {
type Abi = (); type Abi = ();
#[inline]
fn into_abi(self, _extra: &mut Stack) -> () { fn into_abi(self, _extra: &mut Stack) -> () {
self self
} }