Open
Description
Describe the bug
If an arm of a match expression contains a string with >= 87 characters, formatting fails on the whole match
To Reproduce
match 0 {
0 => {"hello"} 1 => { ""}
_ => {"veeeeeeeeeeery loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong string"}
};
Expected behavior
match 0 {
0 => "hello",
1 => "",
_ => {
"veeeeeeeeeeery loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong string"
}
};
If the third string is less than 86 characters, formatting works as expected.
Meta
- rustfmt version: rustfmt 1.4.36-stable (7de6968 2021-02-07)
- From where did you install rustfmt?: rustup
- How do you run rustfmt:
rustfmt
,cargo-fmt
, and rust-analyzer formatting in VSCode.