mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Nest all the or-patterns!
This commit is contained in:
parent
c82a9141ab
commit
95c8c65139
26 changed files with 133 additions and 151 deletions
|
@ -1384,7 +1384,7 @@ fn fix_param_usages(ctx: &AssistContext, params: &[Param], syntax: &SyntaxNode)
|
|||
for (param, usages) in usages_for_param {
|
||||
for usage in usages {
|
||||
match usage.syntax().ancestors().skip(1).find_map(ast::Expr::cast) {
|
||||
Some(ast::Expr::MethodCallExpr(_)) | Some(ast::Expr::FieldExpr(_)) => {
|
||||
Some(ast::Expr::MethodCallExpr(_) | ast::Expr::FieldExpr(_)) => {
|
||||
// do nothing
|
||||
}
|
||||
Some(ast::Expr::RefExpr(node))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue