diff options
| author | Marcus Klaas de Vries <mail@marcusklaas.nl> | 2015-11-10 08:43:29 +0100 |
|---|---|---|
| committer | Marcus Klaas de Vries <mail@marcusklaas.nl> | 2015-11-10 08:43:29 +0100 |
| commit | b6120b39ab91d94de46d9430b1552fdfef861f33 (patch) | |
| tree | 5e25ac832705a0c142939a2115a9f33f06fe7a41 /src | |
| parent | 5346daf541c37714b36a8d84c054e002f5fdbf8d (diff) | |
| parent | 3dc0b804f1a50871d2a5187492ba92421727799c (diff) | |
Merge pull request #571 from nrc/semi
Don't strip semi-colons from expressions with non-void type since it …
Diffstat (limited to 'src')
| -rw-r--r-- | src/visitor.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/visitor.rs b/src/visitor.rs index 534b2c877fd..6114dfff077 100644 --- a/src/visitor.rs +++ b/src/visitor.rs @@ -507,12 +507,8 @@ fn semicolon_for_stmt(stmt: &ast::Stmt) -> bool { match expr.node { ast::Expr_::ExprWhile(..) | ast::Expr_::ExprWhileLet(..) | - ast::Expr_::ExprIf(..) | - ast::Expr_::ExprIfLet(..) | - ast::Expr_::ExprBlock(..) | ast::Expr_::ExprLoop(..) | - ast::Expr_::ExprForLoop(..) | - ast::Expr_::ExprMatch(..) => false, + ast::Expr_::ExprForLoop(..) => false, _ => true, } } |
