From aa29364f831c4633613ba7e28cae147e69107d66 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 7 Jun 2021 19:06:03 +0200 Subject: Reorder CompletionContext fields --- crates/ide_db/src/call_info.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ide_db/src') diff --git a/crates/ide_db/src/call_info.rs b/crates/ide_db/src/call_info.rs index bad277a95..933bcad55 100644 --- a/crates/ide_db/src/call_info.rs +++ b/crates/ide_db/src/call_info.rs @@ -223,9 +223,8 @@ impl FnCallNode { ast::Expr::PathExpr(path_expr) => path_expr.path()?.segment()?.name_ref()?, _ => return None, }), - FnCallNode::MethodCallExpr(call_expr) => { - call_expr.syntax().children().filter_map(ast::NameRef::cast).next() + call_expr.syntax().children().find_map(ast::NameRef::cast) } } } -- cgit v1.2.3