diff options
author | Daniel Mueller <deso@posteo.net> | 2019-05-27 08:16:27 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-05-27 08:16:27 -0700 |
commit | c01bbbf186cd88f9e1b3c3eda0459635bed209b4 (patch) | |
tree | d161ffd8fc36dc18ba99ff157241c6191d89c9ff /rand/rand_os/src/lib.rs | |
parent | b637d5284c6117da3bfeb471da7c62e53a632621 (diff) | |
download | nitrocli-c01bbbf186cd88f9e1b3c3eda0459635bed209b4.tar.gz nitrocli-c01bbbf186cd88f9e1b3c3eda0459635bed209b4.tar.bz2 |
Require trailing comma in Enum macro's input
The input to the Enum macro is supposed to resemble the definition of an
enum in Rust code. When manually defining an enum (or a struct for that
matter), we typically terminate all branches with a comma, and don't
just omit that on the last line.
To mirror this behavior, this change adjusts the Enum macro to accept
(and in fact, require) a comma-terminated last line as well, as opposed
to not accepting it as had been the case so far.
Diffstat (limited to 'rand/rand_os/src/lib.rs')
0 files changed, 0 insertions, 0 deletions