aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar/expressions/atom.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_parser/src/grammar/expressions/atom.rs')
-rw-r--r--crates/ra_parser/src/grammar/expressions/atom.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs
index 0b01d3bc6..ca6569c9f 100644
--- a/crates/ra_parser/src/grammar/expressions/atom.rs
+++ b/crates/ra_parser/src/grammar/expressions/atom.rs
@@ -243,12 +243,10 @@ fn lambda_expr(p: &mut Parser) -> CompletedMarker {
243 // test lambda_ret_block 243 // test lambda_ret_block
244 // fn main() { || -> i32 { 92 }(); } 244 // fn main() { || -> i32 { 92 }(); }
245 block_expr(p); 245 block_expr(p);
246 } else if p.at_ts(EXPR_FIRST) {
247 expr(p);
246 } else { 248 } else {
247 if p.at_ts(EXPR_FIRST) { 249 p.error("expected expression");
248 expr(p);
249 } else {
250 p.error("expected expression");
251 }
252 } 250 }
253 m.complete(p, CLOSURE_EXPR) 251 m.complete(p, CLOSURE_EXPR)
254} 252}