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/items/traits.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_parser/src/grammar/items') diff --git a/crates/ra_parser/src/grammar/items/traits.rs b/crates/ra_parser/src/grammar/items/traits.rs index 09ab3bfd4..5fcacfbff 100644 --- a/crates/ra_parser/src/grammar/items/traits.rs +++ b/crates/ra_parser/src/grammar/items/traits.rs @@ -44,7 +44,7 @@ pub(crate) fn trait_item_list(p: &mut Parser) { // test impl_block // impl Foo {} pub(super) fn impl_block(p: &mut Parser) { - assert!(p.at(T![impl ])); + assert!(p.at(T![impl])); p.bump(); if choose_type_params_over_qpath(p) { type_params::opt_type_param_list(p); @@ -130,7 +130,7 @@ fn choose_type_params_over_qpath(p: &Parser) -> bool { // impl impl NotType {} // impl Trait2 for impl NotType {} pub(crate) fn impl_type(p: &mut Parser) { - if p.at(T![impl ]) { + if p.at(T![impl]) { p.error("expected trait or type"); return; } -- cgit v1.2.3