remove clone in call arg parsing

This commit is contained in:
ConnorSkees 2020-05-22 22:30:14 -04:00
parent 22607fb0ef
commit 7b8b5c233c

View File

@ -397,7 +397,7 @@ pub(crate) fn eat_call_args<I: Iterator<Item = Token>>(
if name.is_empty() { if name.is_empty() {
CallArg::Positional(args.len()) CallArg::Positional(args.len())
} else { } else {
CallArg::Named(name.clone().into()) CallArg::Named(name.as_str().into())
}, },
val.clone(), val.clone(),
); );