From ab7ab3604a8d04d7f5daab035348b143e946fcac Mon Sep 17 00:00:00 2001 From: BakerNet Date: Sat, 16 Dec 2023 22:14:42 -0800 Subject: [PATCH] clippy --- src/bin/17.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/17.rs b/src/bin/17.rs index 8d7da54..c20396e 100644 --- a/src/bin/17.rs +++ b/src/bin/17.rs @@ -179,7 +179,7 @@ fn shortest_path( } } - for (new_pos, new_dir) in valid_neighbors(&map, position, direction, dir_count, part2) { + for (new_pos, new_dir) in valid_neighbors(map, position, direction, dir_count, part2) { let next = State { cost: cost + map[new_pos.0][new_pos.1], position: new_pos,