mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
chore(api) Copy type instead of cloning it.
This commit is contained in:
2
lib/api/src/externals/function.rs
vendored
2
lib/api/src/externals/function.rs
vendored
@@ -198,7 +198,7 @@ impl Function {
|
||||
// Store the argument values into `values_vec`.
|
||||
let param_tys = signature.params().iter();
|
||||
for ((arg, slot), ty) in params.iter().zip(&mut values_vec).zip(param_tys) {
|
||||
if arg.ty() != ty.clone() {
|
||||
if arg.ty() != *ty {
|
||||
let param_types = format_types_for_error_message(params);
|
||||
return Err(RuntimeError::new(format!(
|
||||
"Parameters of type [{}] did not match signature {}",
|
||||
|
||||
Reference in New Issue
Block a user