diff --git a/src/day24.rs b/src/day24.rs index 39e6928..2b490bb 100644 --- a/src/day24.rs +++ b/src/day24.rs @@ -126,7 +126,7 @@ unsafe fn part2_inner(mut input: &[u8]) -> &'static str { } } b'X' if first_char(output) != b'z' => { - swapped.push(output); + let None = swapped.try_push(output) else { unreachable_unchecked() }; } _ => {} }