aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-09-02 16:51:03 +0100
committerAleksey Kladov <[email protected]>2019-09-02 16:58:21 +0100
commitc89abd42621daff2d652566be4e9e4789599268c (patch)
treef6ab78e03a559cde48ff7525cccce6b144da862d /crates/ra_parser/src/grammar.rs
parent32bebfaf0e24651316c4d70d1e23ef170224bd7c (diff)
simplify
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) {