aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgenii P <[email protected]>2019-08-08 02:58:28 +0100
committerEvgenii P <[email protected]>2019-08-08 02:58:28 +0100
commit77f4ab3e9bff67d9efbbf1c1be5575630bcbb1d8 (patch)
treec7fd5eda4cc9fa29bd8e13d991b7d585fb226741
parent79d4202194ebeb080b1ae283c56a1697aa4a6fcc (diff)
Deduplicate while loop break condition
-rw-r--r--crates/ra_parser/src/grammar/params.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/params.rs b/crates/ra_parser/src/grammar/params.rs
index 34c584c79..834d80b52 100644
--- a/crates/ra_parser/src/grammar/params.rs
+++ b/crates/ra_parser/src/grammar/params.rs
@@ -47,10 +47,10 @@ fn list_(p: &mut Parser, flavor: Flavor) {
47 attributes::outer_attributes(p); 47 attributes::outer_attributes(p);
48 opt_self_param(p); 48 opt_self_param(p);
49 } 49 }
50 while !p.at(EOF) && !p.at(ket) && !(flavor.type_required() && p.at(T![...])) { 50 while !p.at(EOF) && !p.at(ket) {
51 attributes::outer_attributes(p); 51 attributes::outer_attributes(p);
52 52
53 if p.at(T![...]) { 53 if flavor.type_required() && p.at(T![...]) {
54 break; 54 break;
55 } 55 }
56 56