Closed bradydean closed 1 year ago
i tried also another return type than usize and got some problem. try fn part1(input: &[u32]) -> usize
maybe same for input, try
fn parse_input(input: &str) -> String { input.to_string() }
Hi !
Looks like you have incompatible versions of cargo aoc
& aoc-runner
.
I've updated the example repository to use the last version.
So the steps to fix that:
cargo aoc
(cargo aoc --version
should yield cargo-aoc 0.3.0
)aoc-runner
& aoc-runner-derive
:
aoc-runner = "0.3.0"
aoc-runner-derive = "0.3.0"
Not sure if I'm doing something wrong, or if this package is out of date now. I used it back for aoc 2020 and it worked great. Trying on Rust 1.65.0.