allow trailing comma on run_days macro

This commit is contained in:
LordMZTE 2021-12-04 23:28:37 +01:00
parent 264a78bfdb
commit 4773676ec5

View file

@ -5,7 +5,7 @@ use owo_colors::OwoColorize;
#[macro_export] #[macro_export]
macro_rules! run_days { macro_rules! run_days {
($($day:ident),+) => { ($($day:ident),+ $(,)?) => {
libaoc::AocRunner::new() libaoc::AocRunner::new()
$(.day($day::aoc_day()))* $(.day($day::aoc_day()))*
.run() .run()