diff options
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r-- | crates/ide_db/src/call_info.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_db/src/call_info.rs b/crates/ide_db/src/call_info.rs index d8878aa91..d4016973c 100644 --- a/crates/ide_db/src/call_info.rs +++ b/crates/ide_db/src/call_info.rs | |||
@@ -109,7 +109,7 @@ fn call_info_impl( | |||
109 | token: SyntaxToken, | 109 | token: SyntaxToken, |
110 | ) -> Option<(hir::Callable, Option<usize>)> { | 110 | ) -> Option<(hir::Callable, Option<usize>)> { |
111 | // Find the calling expression and it's NameRef | 111 | // Find the calling expression and it's NameRef |
112 | let calling_node = FnCallNode::with_node(&token.parent())?; | 112 | let calling_node = FnCallNode::with_node(&token.parent()?)?; |
113 | 113 | ||
114 | let callable = match &calling_node { | 114 | let callable = match &calling_node { |
115 | FnCallNode::CallExpr(call) => sema.type_of_expr(&call.expr()?)?.as_callable(sema.db)?, | 115 | FnCallNode::CallExpr(call) => sema.type_of_expr(&call.expr()?)?.as_callable(sema.db)?, |