diff --git a/src/bin/04.rs b/src/bin/04.rs index 35a923a..b4066fd 100644 --- a/src/bin/04.rs +++ b/src/bin/04.rs @@ -39,9 +39,7 @@ fn solve(input: &str, award_cards: bool) -> Option { } 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; } }