Allow trailing commas for bounded_vec! (#10959)

This commit is contained in:
Zeke Mostov
2022-03-02 00:40:08 -08:00
committed by GitHub
parent 5a0b12bb5d
commit f3e9c0af04
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ impl TypeId for PalletId {
#[macro_export]
#[cfg(feature = "std")]
macro_rules! bounded_vec {
($ ($values:expr),* ) => {
($ ($values:expr),* $(,)?) => {
{
use $crate::sp_std::convert::TryInto as _;
$crate::sp_std::vec![$($values),*].try_into().unwrap()