From e670a99413f00de17ce8f65b77ddcd5cc6805a1d Mon Sep 17 00:00:00 2001 From: kjeremy Date: Thu, 7 Nov 2019 09:44:45 -0500 Subject: cargo xtask format with 1.39 --- crates/ra_parser/src/grammar/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_parser/src/grammar') diff --git a/crates/ra_parser/src/grammar/types.rs b/crates/ra_parser/src/grammar/types.rs index d4ca94fca..9b2e440fb 100644 --- a/crates/ra_parser/src/grammar/types.rs +++ b/crates/ra_parser/src/grammar/types.rs @@ -28,7 +28,7 @@ fn type_with_bounds_cond(p: &mut Parser, allow_bounds: bool) { T![fn] | T![unsafe] | T![extern] => fn_pointer_type(p), T![for] => for_type(p), T![impl] => impl_trait_type(p), - T![dyn ] => dyn_trait_type(p), + T![dyn] => dyn_trait_type(p), // Some path types are not allowed to have bounds (no plus) T![<] => path_type_(p, allow_bounds), _ if paths::is_use_path_start(p) => path_or_macro_type_(p, allow_bounds), @@ -234,9 +234,9 @@ fn impl_trait_type(p: &mut Parser) { // test dyn_trait_type // type A = dyn Iterator> + 'a; fn dyn_trait_type(p: &mut Parser) { - assert!(p.at(T![dyn ])); + assert!(p.at(T![dyn])); let m = p.start(); - p.bump(T![dyn ]); + p.bump(T![dyn]); type_params::bounds_without_colon(p); m.complete(p, DYN_TRAIT_TYPE); } -- cgit v1.2.3