]> git.lizzy.rs Git - rust.git/blobdiff - src/utils.rs
Format source codes
[rust.git] / src / utils.rs
index bc46316d39b8d364436d0e0a66036f5e5328cdf7..7873cd5d846d1642d4178cdd4315404ea8eab889 100644 (file)
@@ -160,9 +160,7 @@ pub fn end_typaram(typaram: &ast::TyParam) -> BytePos {
 #[inline]
 pub fn semicolon_for_expr(expr: &ast::Expr) -> bool {
     match expr.node {
-        ast::ExprKind::Ret(..) |
-        ast::ExprKind::Continue(..) |
-        ast::ExprKind::Break(..) => true,
+        ast::ExprKind::Ret(..) | ast::ExprKind::Continue(..) | ast::ExprKind::Break(..) => true,
         _ => false,
     }
 }