diff options
author | Lukas Wirth <[email protected]> | 2021-06-07 18:06:03 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-07 18:06:03 +0100 |
commit | aa29364f831c4633613ba7e28cae147e69107d66 (patch) | |
tree | af11d666532cf41e7084dd6f7f21c2cd663c809d /crates/ide_db | |
parent | 8b6c3eaaeb6b074c7cbe34f25b7736157b13f84a (diff) |
Reorder CompletionContext fields
Diffstat (limited to 'crates/ide_db')
-rw-r--r-- | crates/ide_db/src/call_info.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 { | |||
223 | ast::Expr::PathExpr(path_expr) => path_expr.path()?.segment()?.name_ref()?, | 223 | ast::Expr::PathExpr(path_expr) => path_expr.path()?.segment()?.name_ref()?, |
224 | _ => return None, | 224 | _ => return None, |
225 | }), | 225 | }), |
226 | |||
227 | FnCallNode::MethodCallExpr(call_expr) => { | 226 | FnCallNode::MethodCallExpr(call_expr) => { |
228 | call_expr.syntax().children().filter_map(ast::NameRef::cast).next() | 227 | call_expr.syntax().children().find_map(ast::NameRef::cast) |
229 | } | 228 | } |
230 | } | 229 | } |
231 | } | 230 | } |