Skip to content

Commit

Permalink
Fix meta variable misuse
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 committed Jul 20, 2019
1 parent 8217a5b commit ea3cc13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/arr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ macro_rules! arr {
($T:ty; $($x:expr),* $(,)*) => (
$crate::arr_impl!($T; $crate::typenum::U0, [], [$($x),*])
);
($($x:expr,)+) => (arr![$($x),*]);
($($x:expr,)+) => (arr![$($x),+]);
() => ("""Macro requires a type, e.g. `let array = arr![u32; 1, 2, 3];`")
}
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
//! ```
#![deny(missing_docs)]
#![deny(meta_variable_misuse)]
#![no_std]

#[cfg(feature = "serde")]
Expand Down

0 comments on commit ea3cc13

Please sign in to comment.