You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> src/day8.rs:46:1
|
46 | #[aoc(day8, part2)]
| ^^^^^^^^^^^^^^^^^^^ types differ in mutability
|
= note: expected mutable reference `&mut Vec<(day8::Operation, i64)>`
found reference `&_`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
The text was updated successfully, but these errors were encountered:
Yeah. That gets me, too. Maybe the tool considers that you may use the generated input twice, for each of Part1 and Part2.
That does happen a lot. Wouldn't want to regenerate in that case. Just guessing.
Maybe the tool considers that you may use the generated input twice, for each of Part1 and Part2.
I didn't think about that. Considering this, I'm tempted to close this issue because the solution would be for cargo-aoc to clone the input before passing it on to the solver, which I don't find ideal. However, for the benchmarks, I don't think people want the cloning of their input being taken into account.
The text was updated successfully, but these errors were encountered: