diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-19 19:19:24 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-19 19:19:24 +0000 |
commit | 63f509f4924e7448b9131514bbdd7a4da5292cd1 (patch) | |
tree | 51995d74a741c61de1d717116475847eb46a74ad /crates/hir_expand/src/db.rs | |
parent | f647e134a785245579da3de04235887a5e958c9b (diff) | |
parent | cd21b0e9c1c99f777c6559ca850f2ea0d247b881 (diff) |
Merge #7352
7352: :arrow_up: rowan r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/hir_expand/src/db.rs')
-rw-r--r-- | crates/hir_expand/src/db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index 467516eb7..cb6e23320 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs | |||
@@ -173,7 +173,7 @@ fn macro_arg_text(db: &dyn AstDatabase, id: MacroCallId) -> Option<GreenNode> { | |||
173 | }; | 173 | }; |
174 | let loc = db.lookup_intern_macro(id); | 174 | let loc = db.lookup_intern_macro(id); |
175 | let arg = loc.kind.arg(db)?; | 175 | let arg = loc.kind.arg(db)?; |
176 | Some(arg.green().clone()) | 176 | Some(arg.green().to_owned()) |
177 | } | 177 | } |
178 | 178 | ||
179 | fn macro_arg(db: &dyn AstDatabase, id: MacroCallId) -> Option<Arc<(tt::Subtree, mbe::TokenMap)>> { | 179 | fn macro_arg(db: &dyn AstDatabase, id: MacroCallId) -> Option<Arc<(tt::Subtree, mbe::TokenMap)>> { |