57ac92bf16
Fixes 5066 When a struct pattern that contained a ".." was formatted, it was assumed that a trailing comma should always be added if the struct fields weren't formatted vertically. Now, a trailing comma is only added if not already included in the reformatted struct fields.
6 lines
76 B
Rust
6 lines
76 B
Rust
// rustfmt-trailing_comma: Always
|
|
|
|
fn main() {
|
|
let Foo { a, .. } = b;
|
|
}
|