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 6377c52 commit bc91854Copy full SHA for bc91854
src/macros.rs
@@ -415,10 +415,6 @@ pub fn rewrite_macro_def(
415
416
result += "}";
417
418
- if def.legacy {
419
- result += ";";
420
- }
421
-
422
Some(result)
423
},
424
context.codemap.span_after(span, "{"),
@@ -432,8 +428,8 @@ pub fn rewrite_macro_def(
432
428
433
429
let fmt = ListFormatting {
434
430
tactic: DefinitiveListTactic::Vertical,
435
- separator: "",
436
- trailing_separator: SeparatorTactic::Never,
431
+ separator: if def.legacy { ";" } else { "" },
+ trailing_separator: SeparatorTactic::Always,
437
separator_place: SeparatorPlace::Back,
438
shape: arm_shape,
439
ends_with_newline: true,
0 commit comments