Support trailing commas in create_db

This commit is contained in:
Luke Parker
2023-11-18 20:54:37 -05:00
parent be48dcc4a4
commit 6e4ecbc90c
7 changed files with 7 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ pub fn serai_db_key(
#[macro_export]
macro_rules! create_db {
($db_name: ident {
$($field_name: ident: ($($arg: ident: $arg_type: ty),*) -> $field_type: ty),*
$($field_name: ident: ($($arg: ident: $arg_type: ty),*) -> $field_type: ty$(,)?)*
}) => {
$(
#[derive(Clone, Debug)]