forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metrics: datapoint macro: Allow trailing comma (solana-labs#30317)
Rust grammar allows trailing commas in most places where a list of elements are accepted. It simplifies cases when the list is generated by a macro, allowing the macro to avoid special cases for a one element list vs longer lists. As such, it is a common practice to allow trailing commas in macros as well.
- Loading branch information
1 parent
6dd5a22
commit c449a15
Showing
1 changed file
with
6 additions
and
6 deletions.
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