1
0
Fork 0

day(12): fix clippy remark

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-01-03 22:14:19 +01:00
parent 9aa15bbf6f
commit 99398e0dae
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -57,7 +57,7 @@ fn get_elevation(c: char) -> i32 {
}
}
fn bfs<F, G>(graph: &Vec<Vec<char>>, start: &Position, has_edge: F, is_target: G) -> Option<usize>
fn bfs<F, G>(graph: &[Vec<char>], start: &Position, has_edge: F, is_target: G) -> Option<usize>
where
F: Fn(&[Vec<char>], &Position, &Position) -> bool,
G: Fn(&[Vec<char>], &Position) -> bool,