A long string in a match arm breaks formatting for the whole match expression #4797
Labels
1x-backport:pending
Fixed/resolved in source but not yet backported to a 1x branch and release
a-matches
match arms, patterns, blocks, etc
help wanted
p-low
Describe the bug
If an arm of a match expression contains a string with >= 87 characters, formatting fails on the whole match
To Reproduce
Expected behavior
If the third string is less than 86 characters, formatting works as expected.
Meta
rustfmt
,cargo-fmt
, and rust-analyzer formatting in VSCode.The text was updated successfully, but these errors were encountered: