File tree 1 file changed +5
-6
lines changed
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> {
2643
2643
hi = path. span ;
2644
2644
return Ok ( self . mk_expr ( lo. to ( hi) , ExprKind :: Path ( Some ( qself) , path) , attrs) ) ;
2645
2645
}
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)
2650
2649
} else {
2651
- return self . parse_lambda_expr ( attrs) ;
2652
- }
2650
+ self . parse_lambda_expr ( attrs)
2651
+ } ;
2653
2652
}
2654
2653
if self . check_keyword ( keywords:: Move ) || self . check_keyword ( keywords:: Static ) {
2655
2654
return self . parse_lambda_expr ( attrs) ;
You can’t perform that action at this time.
0 commit comments