Re: [PATCH] rust: macros: Allow omitting trailing commas in module!
From: Miguel Ojeda
Date: Thu Aug 06 2026 - 08:11:47 EST
On Thu, Aug 6, 2026 at 1:54 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> Hmm, I am not sure if we really want this.
>
> `module!` invocation usually spans multiple lines so the formatting rules would
> always prefer adding trailing comma for this case.
>
> Allowing omitting sounds like encouraging bad practice.
Yeah, it also means inconsistency can be introduced for little gain.
Cheers,
Miguel