mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Deduplicate while loop break condition
This commit is contained in:
parent
79d4202194
commit
77f4ab3e9b
1 changed files with 2 additions and 2 deletions
|
@ -47,10 +47,10 @@ fn list_(p: &mut Parser, flavor: Flavor) {
|
||||||
attributes::outer_attributes(p);
|
attributes::outer_attributes(p);
|
||||||
opt_self_param(p);
|
opt_self_param(p);
|
||||||
}
|
}
|
||||||
while !p.at(EOF) && !p.at(ket) && !(flavor.type_required() && p.at(T![...])) {
|
while !p.at(EOF) && !p.at(ket) {
|
||||||
attributes::outer_attributes(p);
|
attributes::outer_attributes(p);
|
||||||
|
|
||||||
if p.at(T![...]) {
|
if flavor.type_required() && p.at(T![...]) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue