PosMap: remove unneeded type bound
This commit is contained in:
parent
37292dd0f1
commit
44560d9bfa
@ -10,7 +10,7 @@ use std::{
|
|||||||
/// Map of all points on the board against some type T
|
/// Map of all points on the board against some type T
|
||||||
/// Used to index like so: example[i][j]
|
/// Used to index like so: example[i][j]
|
||||||
/// with each coordinate
|
/// with each coordinate
|
||||||
pub struct PosMap<T: Default>(ArrayVec<T, { Board::AREA.0 as usize }>);
|
pub struct PosMap<T>(ArrayVec<T, { Board::AREA.0 as usize }>);
|
||||||
|
|
||||||
impl<T: Default> PosMap<T> {
|
impl<T: Default> PosMap<T> {
|
||||||
#[allow(clippy::new_without_default)]
|
#[allow(clippy::new_without_default)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user