Skip to content

Commit 91676f3

Browse files
committed
syntax: Don't add an extra space before the last comma...
...when printing struct update expressions.
1 parent 9f11485 commit 91676f3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,6 @@ fn print_expr(s: ps, &&expr: @ast::expr) {
11531153
commasep_cmnt(s, consistent, (*fields), print_field, get_span);
11541154
match wth {
11551155
Some(expr) => {
1156-
if vec::len((*fields)) > 0u { space(s.s); }
11571156
ibox(s, indent_unit);
11581157
word(s.s, ~",");
11591158
space(s.s);

0 commit comments

Comments
 (0)