diff options
| author | Jon Gjengset <jon@thesquareplanet.com> | 2017-03-26 01:16:45 -0400 |
|---|---|---|
| committer | Nick Cameron <nrc@ncameron.org> | 2017-03-26 18:16:45 +1300 |
| commit | f96e56c3a024fd6b8e5545e21299cdefe17c5965 (patch) | |
| tree | db502dac6b405a58d1297bb97c22b94ada593782 /src/expr.rs | |
| parent | 6be61bcdd6252b529f5a14765fb7cb01be943f66 (diff) | |
Avoid extra comma in vertical single-field struct patterns (#1403)
* Add (failing) test for #1397 * Fix for #1397 Specifically, we end up double-adding a trailing comma for single-member struct patterns that are arranged vertically. One is added by write_list (since such structs return true for needs_trailing_separator), and another is added by the if in the old code.
Diffstat (limited to 'src/expr.rs')
0 files changed, 0 insertions, 0 deletions
