We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 080eeb1 commit e515d1dCopy full SHA for e515d1d
src/day17.rs
@@ -69,7 +69,7 @@ unsafe fn inner_part1(s: &[u8]) -> &'static str {
69
70
let out_len = unsafe { out_ptr.offset_from(result_ptr) };
71
72
- unsafe { str::from_utf8(&RESULT[..(out_len - 1) as usize]).unwrap() }
+ unsafe { str::from_utf8_unchecked(&RESULT[..(out_len - 1) as usize]) }
73
}
74
75
const fn find_a_r(p: &[u64], x: u64, y: u64, pa: u64) -> Option<u64> {
0 commit comments