Merge pull request #901 from alexcrichton/inline-unit

Add `#[inline]` for `IntoWasmAbi for ()`
This commit is contained in:
Alex Crichton 2018-09-27 13:50:38 -07:00 committed by GitHub
commit a0c397d2be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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