1
0
Fork 0

vector2d: use slice instead of Vec

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-12-14 15:35:56 +01:00
parent 7f7dffe686
commit bf8c4ddc67
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -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,