Update tests

This commit is contained in:
topecongiro 2017-07-10 16:52:55 +09:00
parent 76228e81de
commit 7cbc48ae32
4 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,5 @@
// rustfmt-format_strings: true
// rustfmt-force_format_strings: true
// rustfmt-max_width: 80
// rustfmt-control_brace_style: AlwaysNextLine

View File

@ -28,9 +28,10 @@ fn issue1656() {
match rewrite {
Some(ref body_str)
if (!body_str.contains('\n') && body_str.len() <= arm_shape.width) ||
!context.config.wrap_match_arms() ||
(extend && first_line_width(body_str) <= arm_shape.width) ||
is_block => {
!context.config.wrap_match_arms() ||
(extend && first_line_width(body_str) <= arm_shape.width) ||
is_block =>
{
return None;
}
_ => {}

View File

@ -1,4 +1,5 @@
// rustfmt-format_strings: true
// rustfmt-force_format_strings: true
// rustfmt-max_width: 80
// rustfmt-control_brace_style: AlwaysNextLine

View File

@ -324,8 +324,8 @@ fn guards() {
if foooooooooooooo && barrrrrrrrrrrr => {}
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
if fooooooooooooooooooooo &&
(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ||
cccccccccccccccccccccccccccccccccccccccc) => {}
(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ||
cccccccccccccccccccccccccccccccccccccccc) => {}
}
}