From 99398e0dae200fa74fb413297511f077b12ed905 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Tue, 3 Jan 2023 22:14:19 +0100 Subject: [PATCH] day(12): fix clippy remark Signed-off-by: Matej Focko --- src/bin/day12.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/day12.rs b/src/bin/day12.rs index b85d5b9..868221f 100644 --- a/src/bin/day12.rs +++ b/src/bin/day12.rs @@ -57,7 +57,7 @@ fn get_elevation(c: char) -> i32 { } } -fn bfs(graph: &Vec>, start: &Position, has_edge: F, is_target: G) -> Option +fn bfs(graph: &[Vec], start: &Position, has_edge: F, is_target: G) -> Option where F: Fn(&[Vec], &Position, &Position) -> bool, G: Fn(&[Vec], &Position) -> bool,