aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion
diff options
context:
space:
mode:
authorMatthias Krüger <[email protected]>2021-06-03 14:32:46 +0100
committerMatthias Krüger <[email protected]>2021-06-03 14:32:46 +0100
commit9452dfaac73cf1ad99e43795f3b1066e54e32abd (patch)
treed4ee0f996908ec3020c13496a49a3a5cc42a8e75 /crates/ide_completion
parent23b48d377d295c7ff5b59246788f0627d3726b5b (diff)
NFC: remove redundant clones (clippy::perf)
Diffstat (limited to 'crates/ide_completion')
-rw-r--r--crates/ide_completion/src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs
index 6f685c02f..cb4f08e53 100644
--- a/crates/ide_completion/src/context.rs
+++ b/crates/ide_completion/src/context.rs
@@ -567,7 +567,7 @@ impl<'a> CompletionContext<'a> {
567 None => return, 567 None => return,
568 }; 568 };
569 569
570 if let Some(segment) = ast::PathSegment::cast(parent.clone()) { 570 if let Some(segment) = ast::PathSegment::cast(parent) {
571 let path = segment.parent_path(); 571 let path = segment.parent_path();
572 self.is_call = path 572 self.is_call = path
573 .syntax() 573 .syntax()