diff --git a/src/bin/14.rs b/src/bin/14.rs index a0db97f..21541d3 100644 --- a/src/bin/14.rs +++ b/src/bin/14.rs @@ -24,7 +24,7 @@ fn swap(floor: &mut [Vec], from: (usize, usize), to: (usize, usize)) floor[to.0][to.1] = a; } -fn tilt(floor: &mut Vec>, tilt: Tilt) { +fn tilt(floor: &mut [Vec], tilt: Tilt) { let (inner, outer) = match tilt { Tilt::North | Tilt::South => (floor[0].len(), floor.len()), Tilt::West | Tilt::East => (floor.len(), floor[0].len()), @@ -54,7 +54,7 @@ fn tilt(floor: &mut Vec>, tilt: Tilt) { } } -fn tilt_cycle(floor: &mut Vec>) { +fn tilt_cycle(floor: &mut [Vec]) { use Tilt::*; tilt(floor, North); tilt(floor, West);