diff options
| author | topecongiro <seuchida@gmail.com> | 2017-05-26 16:36:15 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-05-26 16:40:19 +0900 |
| commit | 554605d47cc2546f32871de5f41ef4008f5d5ecf (patch) | |
| tree | 2c9b462162f25b523cb6cca1e2b22900ea27949f /src/expr.rs | |
| parent | 15b988aed3d2d4ec761452840ed96b84080c2abc (diff) | |
Format source codes and add tests
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs index 0abeafaefc2..21a872489d8 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1782,7 +1782,7 @@ fn rewrite_call_args(context: &RewriteContext, // and not rewriting macro. Some(ref s) if context.config.fn_call_style() == IndentStyle::Block && !context.inside_macro && - ((!can_be_overflowed(&context, args) && last_char_is_not_comma && + ((!can_be_overflowed(context, args) && last_char_is_not_comma && s.contains('\n')) || first_line_width(s) > one_line_budget) => { fmt.trailing_separator = SeparatorTactic::Vertical; |
