diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-03 14:45:17 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-03 14:45:17 +0100 |
commit | 1dbdac8f518e5d3400a0bbc0478a606ab70d8a44 (patch) | |
tree | d4ee0f996908ec3020c13496a49a3a5cc42a8e75 /crates/ide_completion/src | |
parent | 23b48d377d295c7ff5b59246788f0627d3726b5b (diff) | |
parent | 9452dfaac73cf1ad99e43795f3b1066e54e32abd (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.rs | 2 |
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() |