mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 21:25:03 +00:00
Allow trailing commas for bounded_vec! (#10959)
This commit is contained in:
1 parent
5a0b12bb5d
commit
f3e9c0af04
2 files changed
+4
-4
No files matched your search
@@ -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