Skip to content

Commit

Permalink
Merge pull request #27 from gchazot/fix-warning
Browse files Browse the repository at this point in the history
2024 Day 24 - Fix build warning
  • Loading branch information
gchazot authored Jan 7, 2025
2 parents 8d7db9d + 80a8846 commit e8f117e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions year_2024/src/day24.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ impl Program {
max_errors: usize,
) -> Option<Vec<(usize, usize)>> {
let mut swaps_iter = SwapIterator::from_set(candidates.clone());
let mut i = 0;
while let Some(swap) = swaps_iter.next() {
let mut next_swaps = swaps.clone();
next_swaps.push(swap.clone());
Expand All @@ -261,7 +260,6 @@ impl Program {
}
}
}
i += 1;
}
None
}
Expand Down

0 comments on commit e8f117e

Please sign in to comment.