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 ae2900b5c..62ef40818 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs | |||
@@ -381,7 +381,7 @@ impl<'a> CompletionContext<'a> { | |||
381 | let def = self.sema.to_def(&it); | 381 | let def = self.sema.to_def(&it); |
382 | (def.map(|def| def.ret_type(self.db)), None) | 382 | (def.map(|def| def.ret_type(self.db)), None) |
383 | }, | 383 | }, |
384 | ast::Stmt(_) => (None, None), | 384 | ast::Stmt(_it) => (None, None), |
385 | _ => { | 385 | _ => { |
386 | match node.parent() { | 386 | match node.parent() { |
387 | Some(n) => { | 387 | Some(n) => { |