Merge pull request #60 from jhwgh1968/plugins

Remove redundant clones in codegen
This commit is contained in:
Stephen Chung
2020-09-23 11:54:57 +08:00
committed by GitHub
4 changed files with 22 additions and 25 deletions

View File

@@ -673,7 +673,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>())
}
};