add Default impl to AocRunner
This commit is contained in:
parent
5b84356e5e
commit
264a78bfdb
1 changed files with 2 additions and 1 deletions
|
@ -18,13 +18,14 @@ pub struct Day {
|
|||
pub part2: Option<fn() -> miette::Result<()>>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct AocRunner {
|
||||
days: Vec<Day>,
|
||||
}
|
||||
|
||||
impl AocRunner {
|
||||
pub fn new() -> Self {
|
||||
Self { days: vec![] }
|
||||
Self::default()
|
||||
}
|
||||
|
||||
pub fn day(&mut self, day: Day) -> &mut Self {
|
||||
|
|
Loading…
Reference in a new issue