Reorder CompletionContext fields

This commit is contained in:
Lukas Wirth 2021-06-07 19:06:03 +02:00
parent 8b6c3eaaeb
commit aa29364f83
2 changed files with 15 additions and 18 deletions

View file

@ -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)
}
}
}