mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Remove useless clone
This commit is contained in:
parent
890ec6f798
commit
133b4063a6
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ fn stringify_expand(
|
||||||
|
|
||||||
let macro_content = {
|
let macro_content = {
|
||||||
let arg = loc.kind.arg(db).ok_or_else(|| mbe::ExpandError::UnexpectedToken)?;
|
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 text = macro_args.text();
|
||||||
let without_parens = TextUnit::of_char('(')..text.len() - TextUnit::of_char(')');
|
let without_parens = TextUnit::of_char('(')..text.len() - TextUnit::of_char(')');
|
||||||
text.slice(without_parens).to_string()
|
text.slice(without_parens).to_string()
|
||||||
|
|
Loading…
Reference in a new issue