Compare commits
2 Commits
0000038084
...
00000400b1
Author | SHA1 | Date |
---|---|---|
Matej Janezic | 00000400b1 | |
Matej Janezic | 00000390f2 |
|
@ -19,7 +19,7 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
|||
|
||||
[[package]]
|
||||
name = "aoc"
|
||||
version = "38.0.0"
|
||||
version = "40.0.0"
|
||||
dependencies = [
|
||||
"itertools",
|
||||
]
|
||||
|
@ -105,7 +105,7 @@ checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0"
|
|||
|
||||
[[package]]
|
||||
name = "download"
|
||||
version = "38.0.0"
|
||||
version = "40.0.0"
|
||||
dependencies = [
|
||||
"dotenvy",
|
||||
"pico-args",
|
||||
|
@ -643,7 +643,7 @@ checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde"
|
|||
|
||||
[[package]]
|
||||
name = "scaffold"
|
||||
version = "38.0.0"
|
||||
version = "40.0.0"
|
||||
dependencies = [
|
||||
"dotenvy",
|
||||
"pico-args",
|
||||
|
|
|
@ -19,7 +19,7 @@ members = ["utils/download", "utils/scaffold"]
|
|||
[workspace.package]
|
||||
description = "template for advent of code"
|
||||
readme = "README.md"
|
||||
version = "38.0.0"
|
||||
version = "40.0.0"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
authors = ["Matej Janežič <janezic.mj@gmail.com>"]
|
||||
|
|
|
@ -36,9 +36,9 @@ macro_rules! solution {
|
|||
|
||||
fn main() {
|
||||
let input = aoc::read_file("inputs", 1);
|
||||
println!("{}Part {}{}", ANSI_BOLD, 1, ANSI_RESET);
|
||||
print!("{}Part {}{}: ", ANSI_BOLD, 1, ANSI_RESET);
|
||||
print_result(part_one, &input);
|
||||
println!("{}Part {}{}", ANSI_BOLD, 1, ANSI_RESET);
|
||||
print!("{}Part {}{}: ", ANSI_BOLD, 2, ANSI_RESET);
|
||||
print_result(part_two, &input);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -39,7 +39,7 @@ fn main() {
|
|||
.text()
|
||||
.unwrap();
|
||||
|
||||
let input_path = format!("src/inputs/{day_padded}.txt");
|
||||
let input_path = format!("data/inputs/{day_padded}.txt");
|
||||
let mut file = match OpenOptions::new()
|
||||
.write(true)
|
||||
.create(true)
|
||||
|
|
Loading…
Reference in New Issue