Nest all the or-patterns!
This commit is contained in:
parent
c82a9141ab
commit
95c8c65139
26 changed files with 133 additions and 151 deletions
|
|
@ -32,7 +32,7 @@ impl Builder {
|
|||
cov_mark::hit!(no_parens_in_use_item);
|
||||
return false;
|
||||
}
|
||||
if matches!(ctx.path_call_kind(), Some(CallKind::Expr) | Some(CallKind::Pat))
|
||||
if matches!(ctx.path_call_kind(), Some(CallKind::Expr | CallKind::Pat))
|
||||
| matches!(
|
||||
ctx.completion_location,
|
||||
Some(ImmediateLocation::MethodCall { has_parens: true, .. })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue