diff options
Diffstat (limited to 'crates/ra_parser/src/grammar/type_params.rs')
-rw-r--r-- | crates/ra_parser/src/grammar/type_params.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar/type_params.rs b/crates/ra_parser/src/grammar/type_params.rs index d739df727..cf54344c6 100644 --- a/crates/ra_parser/src/grammar/type_params.rs +++ b/crates/ra_parser/src/grammar/type_params.rs | |||
@@ -156,7 +156,10 @@ fn is_where_predicate(p: &mut Parser) -> bool { | |||
156 | } | 156 | } |
157 | 157 | ||
158 | fn is_where_clause_end(p: &mut Parser) -> bool { | 158 | fn is_where_clause_end(p: &mut Parser) -> bool { |
159 | p.current() == T!['{'] || p.current() == T![;] || p.current() == T![=] | 159 | match p.current() { |
160 | T!['{'] | T![;] | T![=] => true, | ||
161 | _ => false, | ||
162 | } | ||
160 | } | 163 | } |
161 | 164 | ||
162 | fn where_predicate(p: &mut Parser) { | 165 | fn where_predicate(p: &mut Parser) { |