aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir_expand/src/builtin_macro.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_expand/src/builtin_macro.rs b/crates/ra_hir_expand/src/builtin_macro.rs
index d2b3d769e..1749b491b 100644
--- a/crates/ra_hir_expand/src/builtin_macro.rs
+++ b/crates/ra_hir_expand/src/builtin_macro.rs
@@ -108,7 +108,7 @@ fn stringify_expand(
108 108
109 let macro_content = { 109 let macro_content = {
110 let arg = loc.kind.arg(db).ok_or_else(|| mbe::ExpandError::UnexpectedToken)?; 110 let arg = loc.kind.arg(db).ok_or_else(|| mbe::ExpandError::UnexpectedToken)?;
111 let macro_args = arg.clone(); 111 let macro_args = arg;
112 let text = macro_args.text(); 112 let text = macro_args.text();
113 let without_parens = TextUnit::of_char('(')..text.len() - TextUnit::of_char(')'); 113 let without_parens = TextUnit::of_char('(')..text.len() - TextUnit::of_char(')');
114 text.slice(without_parens).to_string() 114 text.slice(without_parens).to_string()