aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-03 14:45:17 +0100
committerGitHub <[email protected]>2021-06-03 14:45:17 +0100
commit1dbdac8f518e5d3400a0bbc0478a606ab70d8a44 (patch)
treed4ee0f996908ec3020c13496a49a3a5cc42a8e75 /crates/ide_completion/src
parent23b48d377d295c7ff5b59246788f0627d3726b5b (diff)
parent9452dfaac73cf1ad99e43795f3b1066e54e32abd (diff)
Merge #9129
9129: NFC: remove redundant clones (clippy::perf) r=Veykril a=matthiaskrgr Co-authored-by: Matthias Krüger <[email protected]>
Diffstat (limited to 'crates/ide_completion/src')
-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()