aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser
diff options
context:
space:
mode:
authorIgor Aleksanov <[email protected]>2020-08-10 13:05:01 +0100
committerIgor Aleksanov <[email protected]>2020-08-10 13:05:01 +0100
commit6344a7f362b19eaf71547766135ece160aa3389e (patch)
tree53dc390d807291f62c1f249f571b36b760e096f5 /crates/ra_parser
parentf3336509e52187a7a70a8043557a7317872e3a2f (diff)
Fix clippy warnings
Diffstat (limited to 'crates/ra_parser')
-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}