diff options
Diffstat (limited to 'crates/ide_completion')
-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() |