From 00000310ba907c78e7a2fff354468fecae7f7201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sun, 17 Dec 2023 14:11:49 +0100 Subject: [PATCH] chore: fix clippy suggestions for day 14 --- src/bin/14.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);