e41329ce87
Fixes 5273 Previously, rustfmt searched for the start of a struct body after the opening `{`. In most cases this works just fine, but const values can also be defined between `{ }`, which lead to issues when rewriting the struct body. Now, rustfmt will search for the `{` after the generic argument list to guarantee that the `{` it finds is the start of the struct body.
4 lines
56 B
Rust
4 lines
56 B
Rust
struct Example<const N: usize = { 1048576 }> {
|
|
//
|
|
}
|