vector2d: use slice instead of Vec
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
7f7dffe686
commit
bf8c4ddc67
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ where
|
||||||
&v[y][x]
|
&v[y][x]
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn in_range<T, U>(v: &Vec<Vec<U>>, idx: &Vector2D<T>) -> bool
|
pub fn in_range<T, U>(v: &[Vec<U>], idx: &Vector2D<T>) -> bool
|
||||||
where
|
where
|
||||||
usize: TryInto<T>,
|
usize: TryInto<T>,
|
||||||
<usize as TryInto<T>>::Error: Debug,
|
<usize as TryInto<T>>::Error: Debug,
|
||||||
|
|
Loading…
Reference in a new issue