Skip to content

Commit c054489

Browse files
committed
chore: cargo fix --edition
1 parent acf54a2 commit c054489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aoclp_solutions/src/y2024/day_08.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct Map {
2222
}
2323

2424
impl Map {
25-
fn antinodes(&self, resonating: bool) -> impl Iterator<Item = Pt> {
25+
fn antinodes(&self, resonating: bool) -> impl Iterator<Item = Pt> + use<> {
2626
let antinodes = self
2727
.antennas
2828
.iter()
@@ -51,7 +51,7 @@ impl Map {
5151
antinodes.into_iter()
5252
}
5353

54-
fn dull_antinodes_for(&self, p1: Pt, p2: Pt) -> impl Iterator<Item = Pt> {
54+
fn dull_antinodes_for(&self, p1: Pt, p2: Pt) -> impl Iterator<Item = Pt> + use<> {
5555
let diff = p1 - p2;
5656
let anti1 = p1 + diff;
5757
let anti2 = p2 - diff;

0 commit comments

Comments
 (0)