Fix "leftover tokens" macro error

v0.7.x
Dario Nieuwenhuis 2021-03-25 00:06:15 +01:00
parent a6a28957b3
commit 4e314089d6
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ macro_rules! enum_with_unknown {
pub enum $name:ident($ty:ty) {
$(
$( #[$variant_attr:meta] )*
$variant:ident = $value:expr $(,)*
),+
$variant:ident = $value:expr
),+ $(,)?
}
) => {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]