aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-05-26 16:34:50 +0100
committerLaurenČ›iu Nicola <[email protected]>2021-05-26 16:34:50 +0100
commit8206939fed0e2307455d46620ee114f74ab35d7f (patch)
tree1fd3312d4f8fc9645c53b0899cb14263f352c11a /crates/hir_expand
parent8b049ec393230e4b9fea3022a3ebf34e2af5395d (diff)
clippy::redundant_clone fixes
Diffstat (limited to 'crates/hir_expand')
-rw-r--r--crates/hir_expand/src/eager.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_expand/src/eager.rs b/crates/hir_expand/src/eager.rs
index e165b9c5f..1464320ba 100644
--- a/crates/hir_expand/src/eager.rs
+++ b/crates/hir_expand/src/eager.rs
@@ -197,7 +197,7 @@ fn eager_macro_recur(
197 macro_resolver: &dyn Fn(ast::Path) -> Option<MacroDefId>, 197 macro_resolver: &dyn Fn(ast::Path) -> Option<MacroDefId>,
198 mut diagnostic_sink: &mut dyn FnMut(mbe::ExpandError), 198 mut diagnostic_sink: &mut dyn FnMut(mbe::ExpandError),
199) -> Result<SyntaxNode, ErrorEmitted> { 199) -> Result<SyntaxNode, ErrorEmitted> {
200 let original = curr.value.clone().clone_for_update(); 200 let original = curr.value.clone_for_update();
201 201
202 let children = original.descendants().filter_map(ast::MacroCall::cast); 202 let children = original.descendants().filter_map(ast::MacroCall::cast);
203 let mut replacements = Vec::new(); 203 let mut replacements = Vec::new();