Use take_string.

This commit is contained in:
Stephen Chung 2020-09-20 14:29:10 +08:00
parent d8d3b52d64
commit 3a98567139

View File

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