From 30115caeb8ca2fefe0b57c9623c60efda5fde2d9 Mon Sep 17 00:00:00 2001 From: Dan Seminara Date: Fri, 12 Jan 2024 23:57:18 -0500 Subject: [PATCH] Fix compilation until https://github.com/nim-lang/Nim/issues/23200 is fixed --- src/year2019/day20.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/year2019/day20.nim b/src/year2019/day20.nim index c1986b9..646a004 100644 --- a/src/year2019/day20.nim +++ b/src/year2019/day20.nim @@ -91,7 +91,7 @@ proc availableMoves(m: ref Maze, pos: Coord): seq[(int, Coord)] = proc part1*(input: string): int = let (maze, start, done) = input.parseMaze - for d, st in dijkstra(start, p => maze.availableMoves(p)): + for d, st in dijkstra(start, proc(p: Coord): seq[(int, Coord)] = maze.availableMoves(p)): if st == done: return d