Skip to content

Commit

Permalink
Clean up day 04
Browse files Browse the repository at this point in the history
  • Loading branch information
Riari committed Dec 4, 2023
1 parent f8550d9 commit 5f5faa5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bin/04.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ fn solve(input: &str, award_cards: bool) -> Option<u32> {
}

win_index += 1;
let card = stacks.get_mut(&(stack_index + win_index));

card.unwrap().copies += 1;
stacks.get_mut(&(stack_index + win_index)).unwrap().copies += 1;
total_cards += 1;
}
}
Expand Down

0 comments on commit 5f5faa5

Please sign in to comment.