mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
llow decl-module to have a where clause with trailing comma (#6431)
This commit is contained in:
committed by
GitHub
parent
780f8e09d7
commit
6103e9854c
@@ -283,7 +283,7 @@ macro_rules! decl_module {
|
||||
$trait_instance:ident: $trait_name:ident
|
||||
$( <I>, I: $instantiable:path $( = $module_default_instance:path )? )?
|
||||
>
|
||||
for enum $call_type:ident where origin: $origin_type:ty $(, $where_ty:ty: $where_bound:path )* {
|
||||
for enum $call_type:ident where origin: $origin_type:ty $(, $where_ty:ty: $where_bound:path )* $(,)? {
|
||||
$( $t:tt )*
|
||||
}
|
||||
) => {
|
||||
@@ -317,6 +317,7 @@ macro_rules! decl_module {
|
||||
origin: $origin_type:ty,
|
||||
system = $system:ident
|
||||
$(, $where_ty:ty: $where_bound:path )*
|
||||
$(,)?
|
||||
{
|
||||
$($t:tt)*
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user