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 eeb6a8a commit 301e0acCopy full SHA for 301e0ac
src/day17.rs
@@ -59,7 +59,7 @@ pub fn part1(s: &str) -> &'static str {
59
60
let out_len = out_ptr.offset_from(result_ptr);
61
62
- str::from_utf8_unchecked(&RESULT[..(out_len - 1) as usize])
+ str::from_utf8_unchecked((*&raw const RESULT).get_unchecked(..(out_len - 1) as usize))
63
}
64
65
0 commit comments