-
Notifications
You must be signed in to change notification settings - Fork 969
Closed
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)I-poor-formattingIssue: poor formattingIssue: poor formatting
Description
Before formatting:
macro_rules! foo {
($a:ident : $b:ty) => {};
($a:ident $b:ident $c:ident) => {};
}After formatting:
macro_rules! foo {
($a: ident: $b: ty) => {};
($a: ident $b: ident $c: ident) => {};
}This formatting makes the macro patterns difficult to read.
I understand why rustfmt adds a space after every :, and it makes a lot of sense when arguments are separated by commas or semicolons. But if arguments are separated by spaces or other kinds of delimiters, the end result is not great. :(
cc @RReverser
Metadata
Metadata
Assignees
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)I-poor-formattingIssue: poor formattingIssue: poor formatting