diff options
author | Aleksey Kladov <[email protected]> | 2019-05-23 23:48:44 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-23 23:48:44 +0100 |
commit | 0270b4bc577ba57f211d25bab161a607b9b94ec5 (patch) | |
tree | 068d6bddab6b25398d03bcf8f74bcb5f2b9a592a /crates/ra_parser/src/grammar/type_params.rs | |
parent | 53ae63835da570c3419712141b34180ff9aae95c (diff) |
reformat
Diffstat (limited to 'crates/ra_parser/src/grammar/type_params.rs')
-rw-r--r-- | crates/ra_parser/src/grammar/type_params.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/type_params.rs b/crates/ra_parser/src/grammar/type_params.rs index 4bbfed780..ef59b59d3 100644 --- a/crates/ra_parser/src/grammar/type_params.rs +++ b/crates/ra_parser/src/grammar/type_params.rs | |||
@@ -150,7 +150,7 @@ pub(super) fn opt_where_clause(p: &mut Parser) { | |||
150 | fn is_where_predicate(p: &mut Parser) -> bool { | 150 | fn is_where_predicate(p: &mut Parser) -> bool { |
151 | match p.current() { | 151 | match p.current() { |
152 | LIFETIME => true, | 152 | LIFETIME => true, |
153 | T![impl ] => false, | 153 | T![impl] => false, |
154 | token => types::TYPE_FIRST.contains(token), | 154 | token => types::TYPE_FIRST.contains(token), |
155 | } | 155 | } |
156 | } | 156 | } |
@@ -170,7 +170,7 @@ fn where_predicate(p: &mut Parser) { | |||
170 | p.error("expected colon"); | 170 | p.error("expected colon"); |
171 | } | 171 | } |
172 | } | 172 | } |
173 | T![impl ] => { | 173 | T![impl] => { |
174 | p.error("expected lifetime or type"); | 174 | p.error("expected lifetime or type"); |
175 | } | 175 | } |
176 | _ => { | 176 | _ => { |