mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-19 11:12:43 +00:00
Update tests
This commit is contained in:
parent
76228e81de
commit
7cbc48ae32
@ -1,4 +1,5 @@
|
||||
// rustfmt-format_strings: true
|
||||
// rustfmt-force_format_strings: true
|
||||
// rustfmt-max_width: 80
|
||||
// rustfmt-control_brace_style: AlwaysNextLine
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
_ => {}
|
||||
|
@ -1,4 +1,5 @@
|
||||
// rustfmt-format_strings: true
|
||||
// rustfmt-force_format_strings: true
|
||||
// rustfmt-max_width: 80
|
||||
// rustfmt-control_brace_style: AlwaysNextLine
|
||||
|
||||
|
@ -324,8 +324,8 @@ fn guards() {
|
||||
if foooooooooooooo && barrrrrrrrrrrr => {}
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
if fooooooooooooooooooooo &&
|
||||
(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ||
|
||||
cccccccccccccccccccccccccccccccccccccccc) => {}
|
||||
(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ||
|
||||
cccccccccccccccccccccccccccccccccccccccc) => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user