From fabbef2c3eaad7326e60cbb7c4c818bfaccb3178 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sun, 4 Jun 2017 15:21:30 +0900 Subject: [PATCH] Add macro to block expr --- src/chains.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chains.rs b/src/chains.rs index dca785593bb1..c7c0b82a64db 100644 --- a/src/chains.rs +++ b/src/chains.rs @@ -339,6 +339,7 @@ fn join_rewrites(rewrites: &[String], subexps: &[ast::Expr], connector: &str) -> // parens, braces, and brackets in its idiomatic formatting. fn is_block_expr(context: &RewriteContext, expr: &ast::Expr, repr: &str) -> bool { match expr.node { + ast::ExprKind::Mac(..) | ast::ExprKind::Call(..) => context.use_block_indent() && repr.contains('\n'), ast::ExprKind::Struct(..) | ast::ExprKind::While(..) |