Update trailing comma match logic, add tests
Updates the traling comma code to attempt to handle multiline non-block bodies when adding traling commas to blocks. Also add and update tests to cover better the interactions between trailing commas and wrapping match arms.
This commit is contained in:
parent
2a430a8947
commit
7ce887abcf
5 changed files with 51 additions and 10 deletions
|
@ -8,6 +8,7 @@ fn foo() {
|
|||
"line1";
|
||||
"line2"
|
||||
}
|
||||
b => "bar",
|
||||
b => (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
||||
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue