Remove redundant clones in codegen

This commit is contained in:
J Henry Waugh
2020-09-22 21:38:02 -05:00
parent 5a37497a22
commit d65042088e
4 changed files with 22 additions and 25 deletions

View File

@@ -672,7 +672,7 @@ impl ExportedFn {
is_string = false;
is_ref = false;
quote_spanned!(arg_type.span()=>
mem::take(args[#i]).clone().cast::<#arg_type>())
mem::take(args[#i]).cast::<#arg_type>())
}
};