Compare commits

..

No commits in common. "8ae82163b4aec7636af9fafa0ac6685700bb54ba" and "a96624e0a0ba309524287b21f74f54700013afda" have entirely different histories.

3 changed files with 1 additions and 28 deletions

View File

@ -7,7 +7,7 @@ struct Hand {
impl From<&str> for Hand {
fn from(s: &str) -> Self {
Self { letter: s.chars().next().unwrap() }
Self { letter: s.0.chars().next().unwrap() }
}
}

View File

@ -1,23 +0,0 @@
use crate::read;
pub fn run() {
let input = read("02");
let lines = input
.lines()
.map(|l| {
l
});
#[cfg(feature = "part1")]
{
let a = "TODO";
eprintln!("Day 2, Part 01: {}", a);
}
#[cfg(feature = "part2")]
{
let b = "TODO";
eprintln!("Day 2, Part 02: {}", b);
}
}

View File

@ -3,7 +3,6 @@ use std::path::Path;
use std::time::Instant;
mod day01;
mod day02;
mod day03;
fn main() {
let today = Local::now().day();
@ -14,9 +13,6 @@ fn main() {
if cfg!(feature = "day02") || (cfg!(feature = "today") && today == 2) {
day02::run();
}
if cfg!(feature = "day03") || (cfg!(feature = "today") && today == 3) {
day03::run();
}
println!("Finished, time taken: {:?}", now.elapsed())
}