Add a warning when not running in december
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
443632378e
commit
053f4ef153
|
@ -9,7 +9,7 @@ enum Instruction {
|
|||
}
|
||||
|
||||
impl Day for Day02 {
|
||||
fn init(content: String) -> Self where Self: Sized {
|
||||
fn init(content: String) -> Self {
|
||||
let lines = content.split("\n").map(str_to_instr).collect::<Vec<Instruction>>();
|
||||
Day02(lines)
|
||||
}
|
||||
|
|
|
@ -57,7 +57,10 @@ fn main() {
|
|||
run_day(&days, v as usize);
|
||||
}
|
||||
} else {
|
||||
let v = chrono::Local::now().day();
|
||||
run_day(&days, v as usize)
|
||||
let v = chrono::Local::now();
|
||||
if v.month() != 12 {
|
||||
println!("This was really only meant to be used in december...")
|
||||
}
|
||||
run_day(&days, v.day() as usize)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue