feat: use checked Day type instead of integers for days (#35)

This commit is contained in:
Tristan Guichaoua
2023-11-22 14:10:19 +01:00
committed by GitHub
parent 6653e856a6
commit 6d9bf346a0
12 changed files with 248 additions and 64 deletions

View File

@@ -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);