Skip to content

Commit

Permalink
Always place spaces after commas in macro match arms.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Jul 5, 2023
1 parent d9a0992 commit 8bbb6d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,6 @@ fn next_space(tok: &TokenKind) -> SpaceState {
| TokenKind::BinOp(BinOpToken::And)
| TokenKind::Tilde
| TokenKind::At
| TokenKind::Comma
| TokenKind::Dot
| TokenKind::DotDot
| TokenKind::DotDotDot
Expand Down
6 changes: 3 additions & 3 deletions tests/target/macro_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ macro_rules! impl_a_method {
$body
}
macro_rules! $n {
($va: expr,$vb: expr) => {
($va: expr, $vb: expr) => {
$n($va, $vb)
};
}
Expand All @@ -55,7 +55,7 @@ macro_rules! impl_a_method {
$body
}
macro_rules! $n {
($va: expr,$vb: expr,$vc: expr) => {
($va: expr, $vb: expr, $vc: expr) => {
$n($va, $vb, $vc)
};
}
Expand All @@ -68,7 +68,7 @@ macro_rules! impl_a_method {
$body
}
macro_rules! $n {
($va: expr,$vb: expr,$vc: expr,$vd: expr) => {
($va: expr, $vb: expr, $vc: expr, $vd: expr) => {
$n($va, $vb, $vc, $vd)
};
}
Expand Down

0 comments on commit 8bbb6d3

Please sign in to comment.