From 5a0ac2d37c1680e2c908273236242dd6e8bdf99d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 26 Sep 2018 09:21:31 -0700 Subject: [PATCH] Add `#[inline]` for `IntoWasmAbi for ()` No need for it to not be inlined, it literally compiles to nothing! --- src/convert/impls.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/convert/impls.rs b/src/convert/impls.rs index 2267a9f5..5193800f 100644 --- a/src/convert/impls.rs +++ b/src/convert/impls.rs @@ -396,6 +396,7 @@ impl FromWasmAbi for Clamped { impl IntoWasmAbi for () { type Abi = (); + #[inline] fn into_abi(self, _extra: &mut Stack) -> () { self }