Compare commits

..

No commits in common. "00000400b192b1d751dabde1aeebea48d89d0ac4" and "0000038084b38e5a08391591812ed35f2a0d91fc" have entirely different histories.

4 changed files with 7 additions and 7 deletions

6
Cargo.lock generated
View File

@ -19,7 +19,7 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]] [[package]]
name = "aoc" name = "aoc"
version = "40.0.0" version = "38.0.0"
dependencies = [ dependencies = [
"itertools", "itertools",
] ]
@ -105,7 +105,7 @@ checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0"
[[package]] [[package]]
name = "download" name = "download"
version = "40.0.0" version = "38.0.0"
dependencies = [ dependencies = [
"dotenvy", "dotenvy",
"pico-args", "pico-args",
@ -643,7 +643,7 @@ checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde"
[[package]] [[package]]
name = "scaffold" name = "scaffold"
version = "40.0.0" version = "38.0.0"
dependencies = [ dependencies = [
"dotenvy", "dotenvy",
"pico-args", "pico-args",

View File

@ -19,7 +19,7 @@ members = ["utils/download", "utils/scaffold"]
[workspace.package] [workspace.package]
description = "template for advent of code" description = "template for advent of code"
readme = "README.md" readme = "README.md"
version = "40.0.0" version = "38.0.0"
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"
authors = ["Matej Janežič <janezic.mj@gmail.com>"] authors = ["Matej Janežič <janezic.mj@gmail.com>"]

View File

@ -36,9 +36,9 @@ macro_rules! solution {
fn main() { fn main() {
let input = aoc::read_file("inputs", 1); let input = aoc::read_file("inputs", 1);
print!("{}Part {}{}: ", ANSI_BOLD, 1, ANSI_RESET); println!("{}Part {}{}", ANSI_BOLD, 1, ANSI_RESET);
print_result(part_one, &input); print_result(part_one, &input);
print!("{}Part {}{}: ", ANSI_BOLD, 2, ANSI_RESET); println!("{}Part {}{}", ANSI_BOLD, 1, ANSI_RESET);
print_result(part_two, &input); print_result(part_two, &input);
} }
}; };

View File

@ -39,7 +39,7 @@ fn main() {
.text() .text()
.unwrap(); .unwrap();
let input_path = format!("data/inputs/{day_padded}.txt"); let input_path = format!("src/inputs/{day_padded}.txt");
let mut file = match OpenOptions::new() let mut file = match OpenOptions::new()
.write(true) .write(true)
.create(true) .create(true)