Skip to content

Commit

Permalink
[2023] Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Dec 9, 2023
1 parent f3b1ad4 commit 931039b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aoc_2023/src/day_08.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ impl Solution for Day08 {
let map = parse(input);

let mut pos = Vec::new();
for (&id, _) in &map.nodes {
if id.ends_with("A") {
for &id in map.nodes.keys() {
if id.ends_with('A') {
pos.push(id);
}
}
Expand All @@ -50,7 +50,7 @@ impl Solution for Day08 {
i += 1;

cycle_len += 1;
if pos.ends_with("Z") {
if pos.ends_with('Z') {
cycles.push(cycle_len);
break;
}
Expand Down

0 comments on commit 931039b

Please sign in to comment.