File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
crates/parser2/src/parser Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,10 @@ pub fn parse_stmt<S: TokenStream>(parser: &mut Parser<S>) -> Result<(), Recovery
21
21
Some ( LetKw ) => parser. parse ( LetStmtScope :: default ( ) ) ,
22
22
Some ( ForKw ) => parser. parse ( ForStmtScope :: default ( ) ) ,
23
23
Some ( WhileKw ) => parser. parse ( WhileStmtScope :: default ( ) ) ,
24
- Some ( ContinueKw ) => {
25
- parser
26
- . parse ( ContinueStmtScope :: default ( ) )
27
- . unwrap_infallible ( ) ;
28
- Ok ( ( ) )
29
- }
30
- Some ( BreakKw ) => {
31
- parser. parse ( BreakStmtScope :: default ( ) ) . unwrap_infallible ( ) ;
32
- Ok ( ( ) )
33
- }
24
+ Some ( ContinueKw ) => Ok ( parser
25
+ . parse ( ContinueStmtScope :: default ( ) )
26
+ . unwrap_infallible ( ) ) ,
27
+ Some ( BreakKw ) => Ok ( parser. parse ( BreakStmtScope :: default ( ) ) . unwrap_infallible ( ) ) ,
34
28
Some ( ReturnKw ) => parser. parse ( ReturnStmtScope :: default ( ) ) ,
35
29
_ => parser. parse ( ExprStmtScope :: default ( ) ) ,
36
30
}
You can’t perform that action at this time.
0 commit comments