diff --git a/lib/wasmer-types/src/types.rs b/lib/wasmer-types/src/types.rs index 37eb7846dab..6ed80e73ce5 100644 --- a/lib/wasmer-types/src/types.rs +++ b/lib/wasmer-types/src/types.rs @@ -229,9 +229,9 @@ impl ExternType { #[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))] pub struct FunctionType { /// The parameters of the function - params: Vec, + params: Box<[Type]>, /// The return values of the function - results: Vec, + results: Box<[Type]>, } impl FunctionType { @@ -242,8 +242,8 @@ impl FunctionType { Returns: Into>, { Self { - params: params.into(), - results: returns.into(), + params: params.into().into_boxed_slice(), + results: returns.into().into_boxed_slice(), } }