Open
Description
fn test(input: Foo) {
match input {
Foo::Bar => {
;
Baz {
field: 0
}
}
}
}
Given this admittedly contrived input, running rustfmt once removes the semicolon. Running it a second time removes the braces for the match body.
I don't know if rustfmt has a rule about being idempotent, but it certainly would surprise me to regularly encounter situations where I have to manually run it to a fixed point.
Tested in the playground, 1.8.0-stable (2024-11-26 90b35a6239).