diff --git a/src/ident_fragment.rs b/src/ident_fragment.rs index e7472fe..67e2e33 100644 --- a/src/ident_fragment.rs +++ b/src/ident_fragment.rs @@ -79,7 +79,7 @@ macro_rules! ident_fragment_display { } } )* - } + }; } ident_fragment_display!(bool, str, String, char); diff --git a/src/runtime.rs b/src/runtime.rs index db3b6a9..8144855 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -134,7 +134,7 @@ pub mod ext { } } )* - } + }; } array_rep_slice!( diff --git a/src/to_tokens.rs b/src/to_tokens.rs index 7f98083..dbb8dfc 100644 --- a/src/to_tokens.rs +++ b/src/to_tokens.rs @@ -127,13 +127,15 @@ impl ToTokens for String { } macro_rules! primitive { - ($($t:ident => $name:ident)*) => ($( - impl ToTokens for $t { - fn to_tokens(&self, tokens: &mut TokenStream) { - tokens.append(Literal::$name(*self)); + ($($t:ident => $name:ident)*) => { + $( + impl ToTokens for $t { + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.append(Literal::$name(*self)); + } } - } - )*) + )* + }; } primitive! {