Skip to content

Commit eecf33b

Browse files
committed
Move ; between macro branches to a separator
1 parent 47a572a commit eecf33b

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
@@ -412,10 +412,6 @@ pub fn rewrite_macro_def(
412412

413413
result += "}";
414414

415-
if def.legacy {
416-
result += ";";
417-
}
418-
419415
Some(result)
420416
},
421417
context.codemap.span_after(span, "{"),
@@ -429,8 +425,8 @@ pub fn rewrite_macro_def(
429425

430426
let fmt = ListFormatting {
431427
tactic: DefinitiveListTactic::Vertical,
432-
separator: "",
433-
trailing_separator: SeparatorTactic::Never,
428+
separator: if def.legacy { ";" } else { "" },
429+
trailing_separator: SeparatorTactic::Always,
434430
separator_place: SeparatorPlace::Back,
435431
shape: arm_shape,
436432
ends_with_newline: true,

0 commit comments

Comments
 (0)