serialize macro fix

This commit is contained in:
Corey Richardson 2015-01-06 18:47:49 -05:00
parent bd4119f965
commit e9cbdd866d

View File

@ -499,7 +499,7 @@ macro_rules! peel {
/// Evaluates to the number of identifiers passed to it, for example: `count_idents!(a, b, c) == 3
macro_rules! count_idents {
() => { 0u };
($_i:ident $(, $rest:ident)*) => { 1 + count_idents!($($rest),*) }
($_i:ident, $($rest:ident),*) => { 1 + count_idents!($($rest),*) }
}
macro_rules! tuple {