mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Fix other clippy warnings.
This commit is contained in:
@@ -76,7 +76,7 @@ impl Day04 {
|
||||
sleep_start = Some(event.time);
|
||||
}
|
||||
EventType::WAKE => {
|
||||
let mut minutes = sleeps.entry(guard.unwrap()).or_insert([0u32; 60]);
|
||||
let minutes = sleeps.entry(guard.unwrap()).or_insert([0u32; 60]);
|
||||
for m in sleep_start.unwrap().minute()..event.time.minute() {
|
||||
minutes[m as usize] += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user