Cleaned up AoC libs and main runner
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use super::dayxx::Solution;
|
||||
use super::Solution;
|
||||
use std::str::FromStr;
|
||||
use fancy_regex::Regex;
|
||||
use strum_macros::EnumString;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
use super::dayxx::Solution;
|
||||
use super::Solution;
|
||||
|
||||
pub struct Day02 {}
|
||||
|
||||
|
@@ -1,7 +0,0 @@
|
||||
use std::{error::Error, fmt::Display};
|
||||
|
||||
pub trait Solution {
|
||||
fn part1(&self, input: &mut Vec<String>) -> Result<Box<dyn Display>, Box<dyn Error>>;
|
||||
fn part2(&self, input: &mut Vec<String>) -> Result<Box<dyn Display>, Box<dyn Error>>;
|
||||
fn get_day(&self) -> u8;
|
||||
}
|
@@ -1,4 +1,10 @@
|
||||
pub mod dayxx;
|
||||
|
||||
pub mod day01;
|
||||
pub mod day02;
|
||||
|
||||
use std::{error::Error, fmt::Display};
|
||||
|
||||
pub trait Solution {
|
||||
fn part1(&self, input: &mut Vec<String>) -> Result<Box<dyn Display>, Box<dyn Error>>;
|
||||
fn part2(&self, input: &mut Vec<String>) -> Result<Box<dyn Display>, Box<dyn Error>>;
|
||||
fn get_day(&self) -> u8;
|
||||
}
|
||||
|
Reference in New Issue
Block a user