diff --git a/common/db/src/create_db.rs b/common/db/src/create_db.rs index 101448b9..22162088 100644 --- a/common/db/src/create_db.rs +++ b/common/db/src/create_db.rs @@ -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)] diff --git a/coordinator/src/cosign_evaluator.rs b/coordinator/src/cosign_evaluator.rs index 6507d729..5c45d414 100644 --- a/coordinator/src/cosign_evaluator.rs +++ b/coordinator/src/cosign_evaluator.rs @@ -29,7 +29,7 @@ use crate::{ create_db! { CosignDb { ReceivedCosign: (set: ValidatorSet, block: [u8; 32]) -> Vec, - DistinctChain: (set: ValidatorSet) -> () + DistinctChain: (set: ValidatorSet) -> (), } } diff --git a/coordinator/src/substrate/db.rs b/coordinator/src/substrate/db.rs index 437af37a..f5cde131 100644 --- a/coordinator/src/substrate/db.rs +++ b/coordinator/src/substrate/db.rs @@ -14,7 +14,7 @@ create_db! { CosignTriggered: () -> (), IntendedCosign: () -> (u64, Option), BlockHasEvents: (block: u64) -> u8, - CosignTransactions: (network: NetworkId) -> Vec<(Session, u64, [u8; 32])> + CosignTransactions: (network: NetworkId) -> Vec<(Session, u64, [u8; 32])>, } } diff --git a/coordinator/src/tributary/db.rs b/coordinator/src/tributary/db.rs index bd771642..f231c0a0 100644 --- a/coordinator/src/tributary/db.rs +++ b/coordinator/src/tributary/db.rs @@ -17,7 +17,7 @@ use crate::tributary::TributarySpec; create_db! { NewTributaryDb { - SeraiBlockNumber: (hash: [u8; 32]) -> u64 + SeraiBlockNumber: (hash: [u8; 32]) -> u64, } } diff --git a/coordinator/src/tributary/nonce_decider.rs b/coordinator/src/tributary/nonce_decider.rs index 37dcbc65..409280f3 100644 --- a/coordinator/src/tributary/nonce_decider.rs +++ b/coordinator/src/tributary/nonce_decider.rs @@ -14,7 +14,7 @@ const PLAN_SIGNING_CODE: u8 = 3; create_db!( NonceDeciderDb { NextNonceDb: (genesis: [u8; 32]) -> u32, - ItemNonceDb: (genesis: [u8; 32], code: u8, id: &[u8]) -> u32 + ItemNonceDb: (genesis: [u8; 32], code: u8, id: &[u8]) -> u32, } ); diff --git a/processor/src/cosigner.rs b/processor/src/cosigner.rs index 4d552480..414c2d47 100644 --- a/processor/src/cosigner.rs +++ b/processor/src/cosigner.rs @@ -25,7 +25,7 @@ use crate::{Get, DbTxn, create_db}; create_db! { CosignerDb { Completed: (id: [u8; 32]) -> (), - Attempt: (id: [u8; 32], attempt: u32) -> () + Attempt: (id: [u8; 32], attempt: u32) -> (), } } diff --git a/processor/src/key_gen.rs b/processor/src/key_gen.rs index 1448819d..54762b87 100644 --- a/processor/src/key_gen.rs +++ b/processor/src/key_gen.rs @@ -39,7 +39,7 @@ create_db!( // These do assume a key is only used once across sets, which holds true so long as a single // participant is honest in their execution of the protocol KeysDb: (network_key: &[u8]) -> Vec, - NetworkKey: (substrate_key: [u8; 32]) -> Vec + NetworkKey: (substrate_key: [u8; 32]) -> Vec, } );