aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_parser/src/grammar.rs')
-rw-r--r--crates/ra_parser/src/grammar.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs
index 2bcbb4184..d0f0dd4ac 100644
--- a/crates/ra_parser/src/grammar.rs
+++ b/crates/ra_parser/src/grammar.rs
@@ -61,11 +61,8 @@ pub(crate) mod fragments {
61 let _ = expressions::expr(p); 61 let _ = expressions::expr(p);
62 } 62 }
63 63
64 pub(crate) fn stmt(p: &mut Parser, with_semi: bool) { 64 pub(crate) fn stmt(p: &mut Parser) {
65 let with_semi = 65 expressions::stmt(p, expressions::StmtWithSemi::No)
66 if with_semi { expressions::StmtWithSemi::Yes } else { expressions::StmtWithSemi::No };
67
68 expressions::stmt(p, with_semi)
69 } 66 }
70 67
71 pub(crate) fn opt_visibility(p: &mut Parser) { 68 pub(crate) fn opt_visibility(p: &mut Parser) {