Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move the option - Add some more tests (don't pass yet)
- Loading branch information
1 parent
8658774
commit a96a69b
Showing
7 changed files
with
129 additions
and
35 deletions.
There are no files selected for viewing
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
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,29 @@ | ||
// rustfmt-item_brace_style: AlwaysNextLine | ||
|
||
mod M { | ||
enum A { | ||
A, | ||
} | ||
|
||
struct B { | ||
b: i32, | ||
} | ||
|
||
// For empty enums and structs, the brace remains on the same line. | ||
enum C {} | ||
|
||
struct D {} | ||
|
||
enum A<T> where T: Copy { | ||
A, | ||
} | ||
|
||
struct B<T> where T: Copy { | ||
b: i32, | ||
} | ||
|
||
// For empty enums and structs, the brace remains on the same line. | ||
enum C<T> where T: Copy {} | ||
|
||
struct D<T> where T: Copy {} | ||
} |
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,29 @@ | ||
// rustfmt-item_brace_style: PreferSameLine | ||
|
||
mod M { | ||
enum A | ||
{ | ||
A, | ||
} | ||
|
||
struct B | ||
{ | ||
b: i32, | ||
} | ||
|
||
enum C {} | ||
|
||
struct D {} | ||
|
||
enum A<T> where T: Copy { | ||
A, | ||
} | ||
|
||
struct B<T> where T: Copy { | ||
b: i32, | ||
} | ||
|
||
enum C<T> where T: Copy {} | ||
|
||
struct D<T> where T: Copy {} | ||
} |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
// rustfmt-item_brace_style: AlwaysNextLine | ||
|
||
mod M { | ||
enum A | ||
{ | ||
A, | ||
} | ||
|
||
struct B | ||
{ | ||
b: i32, | ||
} | ||
|
||
// For empty enums and structs, the brace remains on the same line. | ||
enum C {} | ||
|
||
struct D {} | ||
|
||
enum A<T> | ||
where T: Copy | ||
{ | ||
A, | ||
} | ||
|
||
struct B<T> | ||
where T: Copy | ||
{ | ||
b: i32, | ||
} | ||
|
||
// For empty enums and structs, the brace remains on the same line. | ||
enum C<T> | ||
where T: Copy | ||
{} | ||
|
||
struct D<T> | ||
where T: Copy | ||
{} | ||
} |
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,31 @@ | ||
// rustfmt-item_brace_style: PreferSameLine | ||
|
||
mod M { | ||
enum A { | ||
A, | ||
} | ||
|
||
struct B { | ||
b: i32, | ||
} | ||
|
||
enum C {} | ||
|
||
struct D {} | ||
|
||
enum A<T> | ||
where T: Copy { | ||
A, | ||
} | ||
|
||
struct B<T> | ||
where T: Copy { | ||
b: i32, | ||
} | ||
|
||
enum C<T> | ||
where T: Copy {} | ||
|
||
struct D<T> | ||
where T: Copy {} | ||
} |
This file was deleted.
Oops, something went wrong.