Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
Fix day 06 clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yamgent committed Dec 6, 2024
1 parent 3395309 commit 7590028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/day06/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn get_guard_p1_path(map: &Map) -> HashSet<Vec2> {

while let Some(guard) = updated_guard_pos {
visited.insert(guard.pos);
updated_guard_pos = guard.advance(&map);
updated_guard_pos = guard.advance(map);
}

visited
Expand All @@ -133,7 +133,7 @@ fn guard_stuck_in_loop(map: &Map) -> bool {
}

visited.insert(guard);
updated_guard_pos = guard.advance(&map);
updated_guard_pos = guard.advance(map);
}

false
Expand Down

0 comments on commit 7590028

Please sign in to comment.