d41805704d
rustfmt should only support rewriting a struct in an expression position with alignment (non-default behavior) when there is no rest (with or without a base) and all of the fields are non-shorthand.
11 lines
153 B
Rust
11 lines
153 B
Rust
// rustfmt-struct_field_align_threshold: 30
|
|
|
|
struct X { a: i32, b: i32 }
|
|
|
|
fn test(x: X) {
|
|
let y = matches!(x, X {
|
|
a: 1,
|
|
..
|
|
});
|
|
}
|