diff options
| author | topecongiro <seuchida@gmail.com> | 2017-06-04 15:21:30 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-06-04 19:35:29 +0900 |
| commit | fabbef2c3eaad7326e60cbb7c4c818bfaccb3178 (patch) | |
| tree | ea88674e6bf5653b8fb7a798cbecbacfe39bcdbb /src/chains.rs | |
| parent | 62d200d9cffcaa50c7874637d588072ded9dffac (diff) | |
Add macro to block expr
Diffstat (limited to 'src/chains.rs')
| -rw-r--r-- | src/chains.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chains.rs b/src/chains.rs index dca785593bb..c7c0b82a64d 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(..) | |
