Sending the following code through rustfmt --config struct_field_align_threshold=30 removes the .., changing the meaning of the code.
struct X { a: i32, b: i32 }
fn test(x: X) {
let y = matches!(x, X {
a: 1,
..
});
}
becomes
struct X {
a: i32,
b: i32,
}
fn test(x: X) {
let y = matches!(x, X { a: 1 });
}
Sending the following code through
rustfmt --config struct_field_align_threshold=30removes the.., changing the meaning of the code.becomes