Skip to content
Snippets Groups Projects
Commit 82661cd2 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

`decl_event` support trailing comma in args (#4554)

parent 3cc6249c
No related merge requests found
......@@ -304,7 +304,7 @@ macro_rules! __events_to_metadata {
(
$( $metadata:expr ),*;
$( #[doc = $doc_attr:tt] )*
$event:ident $( ( $( $param:path ),* ) )*,
$event:ident $( ( $( $param:path ),* $(,)? ) )*,
$( $rest:tt )*
) => {
$crate::__events_to_metadata!(
......@@ -704,6 +704,10 @@ mod tests {
OriginRenamed = <T as Trait>::Origin,
{
TestEvent(BalanceRenamed, OriginRenamed),
TrailingCommaInArgs(
u32,
u32,
),
}
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment