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]]
name = "aoc"
version = "40.0.0"
version = "38.0.0"
dependencies = [
"itertools",
]
@ -105,7 +105,7 @@ checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0"
[[package]]
name = "download"
version = "40.0.0"
version = "38.0.0"
dependencies = [
"dotenvy",
"pico-args",
@ -643,7 +643,7 @@ checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde"
[[package]]
name = "scaffold"
version = "40.0.0"
version = "38.0.0"
dependencies = [
"dotenvy",
"pico-args",

View File

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

View File

@ -36,9 +36,9 @@ macro_rules! solution {
fn main() {
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!("{}Part {}{}: ", ANSI_BOLD, 2, ANSI_RESET);
println!("{}Part {}{}", ANSI_BOLD, 1, ANSI_RESET);
print_result(part_two, &input);
}
};

View File

@ -39,7 +39,7 @@ fn main() {
.text()
.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()
.write(true)
.create(true)