-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update type alias soft keyword heuristic to be more strict about `Equ…
…als` placement
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,10 @@ where | |
} | ||
Tok::Lsqb => nesting += 1, | ||
Tok::Rsqb => nesting -= 1, | ||
_ => {} | ||
// Allow arbitrary content within brackets for now | ||
_ if nesting > 0 => {} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
MichaReiser
Contributor
|
||
// Exit if unexpected tokens are seen | ||
_ => break, | ||
} | ||
} | ||
} | ||
|
rustfmt removes the trailing comma here. Am I misunderstanding how this works?