diff --git a/src/bin/day20.rs b/src/bin/day20.rs index 906f2ee..dc97d89 100644 --- a/src/bin/day20.rs +++ b/src/bin/day20.rs @@ -110,7 +110,7 @@ impl Day20 { watch: Option, ) -> (usize, usize, Option) { let mut q = VecDeque::new(); - let mut counters = vec![0, 0]; + let mut counters = [0, 0]; let mut high_idx = None; q.push_back(("button".to_owned(), "broadcaster".to_owned(), false)); @@ -197,7 +197,7 @@ impl Solution for Day20 { fn part_2(&mut self) -> Output2 { let rx_parent = &self.gates["rx"].inputs[0]; - let rx_parent_hash = Some(gate_hash(&rx_parent)); + let rx_parent_hash = Some(gate_hash(rx_parent)); let mut cycles = vec![0_usize; self.gates[rx_parent].inputs.len()]; let mut found = 0;