day(12): fix clippy remark
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
9aa15bbf6f
commit
99398e0dae
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue