Remove useless clone

This commit is contained in:
kjeremy 2019-12-20 09:43:01 -05:00
parent 890ec6f798
commit 133b4063a6

View file

@ -108,7 +108,7 @@ fn stringify_expand(
let macro_content = {
let arg = loc.kind.arg(db).ok_or_else(|| mbe::ExpandError::UnexpectedToken)?;
let macro_args = arg.clone();
let macro_args = arg;
let text = macro_args.text();
let without_parens = TextUnit::of_char('(')..text.len() - TextUnit::of_char(')');
text.slice(without_parens).to_string()