-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more tests for struct_field_align_threshold and trailing_comma
- Loading branch information
1 parent
ee13051
commit ab9f2a8
Showing
5 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// rustfmt-struct_field_align_threshold: 30 | ||
// rustfmt-trailing_comma: Always | ||
|
||
struct Foo { | ||
group_a: u8, | ||
|
||
group_b: u8 | ||
} | ||
|
||
struct Bar { | ||
group_a: u8, | ||
|
||
group_b: u8, | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// rustfmt-struct_field_align_threshold: 0 | ||
// rustfmt-trailing_comma: Never | ||
|
||
pub struct Baz { | ||
group_a: u8, | ||
|
||
group_b: u8 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// rustfmt-struct_field_align_threshold: 30 | ||
// rustfmt-trailing_comma: Always | ||
|
||
struct Foo { | ||
group_a: u8, | ||
|
||
group_b: u8, | ||
} | ||
|
||
struct Bar { | ||
group_a: u8, | ||
|
||
group_b: u8, | ||
} |