We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a572a commit eecf33bCopy full SHA for eecf33b
src/macros.rs
@@ -412,10 +412,6 @@ pub fn rewrite_macro_def(
412
413
result += "}";
414
415
- if def.legacy {
416
- result += ";";
417
- }
418
-
419
Some(result)
420
},
421
context.codemap.span_after(span, "{"),
@@ -429,8 +425,8 @@ pub fn rewrite_macro_def(
429
425
430
426
let fmt = ListFormatting {
431
427
tactic: DefinitiveListTactic::Vertical,
432
- separator: "",
433
- trailing_separator: SeparatorTactic::Never,
428
+ separator: if def.legacy { ";" } else { "" },
+ trailing_separator: SeparatorTactic::Always,
434
separator_place: SeparatorPlace::Back,
435
shape: arm_shape,
436
ends_with_newline: true,
0 commit comments