feat: use checked Day type instead of integers for days (#35)
This commit is contained in:
committed by
GitHub
parent
6653e856a6
commit
6d9bf346a0
@@ -1,8 +1,9 @@
|
||||
use std::process;
|
||||
|
||||
use crate::template::aoc_cli;
|
||||
use crate::Day;
|
||||
|
||||
pub fn handle(day: u8) {
|
||||
pub fn handle(day: Day) {
|
||||
if aoc_cli::check().is_err() {
|
||||
eprintln!("command \"aoc\" not found or not callable. Try running \"cargo install aoc-cli\" to install it.");
|
||||
process::exit(1);
|
||||
|
||||
Reference in New Issue
Block a user