From 0270b4bc577ba57f211d25bab161a607b9b94ec5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 May 2019 01:48:44 +0300 Subject: reformat --- crates/ra_parser/src/grammar/type_params.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_parser/src/grammar/type_params.rs') 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) { fn is_where_predicate(p: &mut Parser) -> bool { match p.current() { LIFETIME => true, - T![impl ] => false, + T![impl] => false, token => types::TYPE_FIRST.contains(token), } } @@ -170,7 +170,7 @@ fn where_predicate(p: &mut Parser) { p.error("expected colon"); } } - T![impl ] => { + T![impl] => { p.error("expected lifetime or type"); } _ => { -- cgit v1.2.3