Skip to content

Commit

Permalink
if we adjust the select! a bit and avoid the to we can reduce the…
Browse files Browse the repository at this point in the history
… size of the intermediate parsers.
  • Loading branch information
Lokathor committed Oct 19, 2024
1 parent 4e19073 commit 84cb04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Statement {
) -> impl Parser<'a, TokenTreeSliceInput<'a>, Self, ErrRichTokenTree<'a>> + Clone
{
recursive(|inner_self| {
let return_p = select! {Lone(KwReturn) => ()}.to(Statement::Return);
let return_p = select! {Lone(KwReturn) => Statement::Return};
let break_p = select! {Lone(KwBreak) => ()}.to(Statement::Break);
let continue_p = select! {Lone(KwContinue) => ()}.to(Statement::Continue);
let call_p = {
Expand Down

0 comments on commit 84cb04f

Please sign in to comment.