mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
Allow trailing commas for bounded_vec! (#10959)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user