Use take_string.
This commit is contained in:
parent
d8d3b52d64
commit
3a98567139
@ -666,8 +666,7 @@ impl ExportedFn {
|
||||
is_string = true;
|
||||
is_ref = false;
|
||||
quote_spanned!(arg_type.span()=>
|
||||
mem::take(args[#i])
|
||||
.clone().cast::<#arg_type>())
|
||||
mem::take(args[#i]).take_string().unwrap())
|
||||
}
|
||||
_ => {
|
||||
is_string = false;
|
||||
|
Loading…
Reference in New Issue
Block a user