Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet committed Aug 26, 2023
1 parent 0374b3d commit d881561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion aoc2020/day04/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ impl<'a> Passport<'a> {
eye_color: Some(eye),
passport_id: Some(pid),
..
} = self else {
} = self
else {
return false;
};
range_check(birth, 1920, 2002, None)
Expand Down
4 changes: 3 additions & 1 deletion aoc2022/day24/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ impl BlizzardGrid {
minutes += 1;
for opt_dir in Direction::ALL {
let loc2 = opt_dir.map_or(Some(loc), |d| d.get(loc.0, loc.1));
let Some(loc2) = loc2 else { continue; };
let Some(loc2) = loc2 else {
continue;
};
if loc2 == self.start || loc2 == self.goal || self.blizzard_free(loc2, minutes) {
heap.push(HeuristicItem::rev(
minutes + self.dist2goal(loc2),
Expand Down

0 comments on commit d881561

Please sign in to comment.