Skip to content

Commit 58e198e

Browse files
committed
Fix warnings
1 parent ff7db1a commit 58e198e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/day10.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ unsafe fn part1_inner(s: &str) -> u32 {
1616
let s = s.as_bytes();
1717

1818
let mut positions = [(0u16, [0u16; MAX_SIZE * MAX_SIZE / 9]); 9];
19-
let maps = &mut MAPS_PART1;
19+
let maps = &mut *(&raw mut MAPS_PART1);
2020
let mut zero_pos = 0;
2121

2222
let mut y = 0;
@@ -85,7 +85,7 @@ unsafe fn part2_inner(s: &str) -> u16 {
8585
let s = s.as_bytes();
8686

8787
let mut positions = [(0u16, [0u16; MAX_SIZE * MAX_SIZE / 9]); 9];
88-
let mut maps = &mut MAPS_PART2;
88+
let maps = &mut *(&raw mut MAPS_PART2);
8989

9090
let mut y = 0;
9191
let mut x = 0;

0 commit comments

Comments
 (0)