diff --git a/src/util/amount.rs b/src/util/amount.rs index eebca34..18f2e72 100644 --- a/src/util/amount.rs +++ b/src/util/amount.rs @@ -1640,7 +1640,7 @@ mod tests { // Creates individual test functions to make it easier to find which check failed. macro_rules! check_format_non_negative { - ($denom:ident; $($test_name:ident, $val:expr, $format_string:expr, $expected:expr);* $(;)*) => { + ($denom:ident; $($test_name:ident, $val:expr, $format_string:expr, $expected:expr);* $(;)?) => { $( #[test] fn $test_name() { @@ -1652,7 +1652,7 @@ mod tests { } macro_rules! check_format_non_negative_show_denom { - ($denom:ident, $denom_suffix:expr; $($test_name:ident, $val:expr, $format_string:expr, $expected:expr);* $(;)*) => { + ($denom:ident, $denom_suffix:expr; $($test_name:ident, $val:expr, $format_string:expr, $expected:expr);* $(;)?) => { $( #[test] fn $test_name() {