about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-09 16:20:38 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-09 16:20:38 +0900
commit8183b949c49cfdd5889859162e82fab4c8e64065 (patch)
tree93dec1f5bf8b2a6d2fd7804c46d6926d4b40bba3 /src/expr.rs
parent4bb90f5cc8e0347534436612f45a3c22c7e265bb (diff)
cargo fmt
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/expr.rs b/src/expr.rs
index 14a5ebd28ee..5b59a5114b5 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -590,7 +590,11 @@ impl Rewrite for ast::Stmt {
 }
 
 // Rewrite condition if the given expression has one.
-pub fn rewrite_cond(context: &RewriteContext<'_>, expr: &ast::Expr, shape: Shape) -> Option<String> {
+pub fn rewrite_cond(
+    context: &RewriteContext<'_>,
+    expr: &ast::Expr,
+    shape: Shape,
+) -> Option<String> {
     match expr.node {
         ast::ExprKind::Match(ref cond, _) => {
             // `match `cond` {`
@@ -1337,7 +1341,11 @@ pub fn is_every_expr_simple(lists: &[OverflowableItem<'_>]) -> bool {
     lists.iter().all(OverflowableItem::is_simple)
 }
 
-pub fn can_be_overflowed_expr(context: &RewriteContext<'_>, expr: &ast::Expr, args_len: usize) -> bool {
+pub fn can_be_overflowed_expr(
+    context: &RewriteContext<'_>,
+    expr: &ast::Expr,
+    args_len: usize,
+) -> bool {
     match expr.node {
         ast::ExprKind::Match(..) => {
             (context.use_block_indent() && args_len == 1)