File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2643,13 +2643,12 @@ impl<'a> Parser<'a> {
26432643 hi = path. span ;
26442644 return Ok ( self . mk_expr ( lo. to ( hi) , ExprKind :: Path ( Some ( qself) , path) , attrs) ) ;
26452645 }
2646- if self . span . rust_2018 ( ) && self . check_keyword ( keywords:: Async )
2647- {
2648- if self . is_async_block ( ) { // check for `async {` and `async move {`
2649- return self . parse_async_block ( attrs) ;
2646+ if self . span . rust_2018 ( ) && self . check_keyword ( keywords:: Async ) {
2647+ return if self . is_async_block ( ) { // check for `async {` and `async move {`
2648+ self . parse_async_block ( attrs)
26502649 } else {
2651- return self . parse_lambda_expr ( attrs) ;
2652- }
2650+ self . parse_lambda_expr ( attrs)
2651+ } ;
26532652 }
26542653 if self . check_keyword ( keywords:: Move ) || self . check_keyword ( keywords:: Static ) {
26552654 return self . parse_lambda_expr ( attrs) ;
You can’t perform that action at this time.
0 commit comments