diff options
author | Matthias Krüger <[email protected]> | 2021-03-21 11:05:08 +0000 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-03-21 11:10:39 +0000 |
commit | 3d9b3a8575ef3cb557fd847b941000df3b2db670 (patch) | |
tree | a942c8942b0c15417d78b88dde2d05c0976d7a42 /crates/hir_expand | |
parent | 0d40ff5e623b3670ce3e0e324ecbab3e5197aaeb (diff) |
remove more redundant clones (clippy::redundant_clone())
Diffstat (limited to 'crates/hir_expand')
-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 2748e25cf..fc73e435b 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().to_owned()) | 176 | Some(arg.green()) |
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)>> { |