rustfmt
rustfmt copied to clipboard
Fix incorrect separator for match arms (#6373)
Fixes #6373
The post_comment member of the ListItem corresponding to the first match arm in the test contained the trailing comma, even though it should have been trimmed.
The reason it wasn't trimmed is that the separator for the match arms list was pipe | rather than comma ,.
Thanks for the PR. Can you add some additional test cases where the match arms aren't separated by commas. For example, when each arm has a block body.
and also some where the arm patterns have leading pipes (with match_arm_leading_pipes configured to add/preserve pipes)