Skip to content

Commit bc91854

Browse files
committed
Move ; between macro branches to a separator
1 parent 6377c52 commit bc91854

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/macros.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,6 @@ pub fn rewrite_macro_def(
415415

416416
result += "}";
417417

418-
if def.legacy {
419-
result += ";";
420-
}
421-
422418
Some(result)
423419
},
424420
context.codemap.span_after(span, "{"),
@@ -432,8 +428,8 @@ pub fn rewrite_macro_def(
432428

433429
let fmt = ListFormatting {
434430
tactic: DefinitiveListTactic::Vertical,
435-
separator: "",
436-
trailing_separator: SeparatorTactic::Never,
431+
separator: if def.legacy { ";" } else { "" },
432+
trailing_separator: SeparatorTactic::Always,
437433
separator_place: SeparatorPlace::Back,
438434
shape: arm_shape,
439435
ends_with_newline: true,

0 commit comments

Comments
 (0)