Deduplicate while loop break condition
This commit is contained in:
parent
79d4202194
commit
77f4ab3e9b
@ -47,10 +47,10 @@ fn list_(p: &mut Parser, flavor: Flavor) {
|
||||
attributes::outer_attributes(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);
|
||||
|
||||
if p.at(T![...]) {
|
||||
if flavor.type_required() && p.at(T![...]) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user