We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo fix --edition
1 parent acf54a2 commit c054489Copy full SHA for c054489
aoclp_solutions/src/y2024/day_08.rs
@@ -22,7 +22,7 @@ struct Map {
22
}
23
24
impl Map {
25
- fn antinodes(&self, resonating: bool) -> impl Iterator<Item = Pt> {
+ fn antinodes(&self, resonating: bool) -> impl Iterator<Item = Pt> + use<> {
26
let antinodes = self
27
.antennas
28
.iter()
@@ -51,7 +51,7 @@ impl Map {
51
antinodes.into_iter()
52
53
54
- fn dull_antinodes_for(&self, p1: Pt, p2: Pt) -> impl Iterator<Item = Pt> {
+ fn dull_antinodes_for(&self, p1: Pt, p2: Pt) -> impl Iterator<Item = Pt> + use<> {
55
let diff = p1 - p2;
56
let anti1 = p1 + diff;
57
let anti2 = p2 - diff;
0 commit comments