Fix warning
This commit is contained in:
parent
268be71d8e
commit
9f2e6be1b3
1 changed files with 2 additions and 1 deletions
|
@ -23,11 +23,12 @@ pub struct PlayerColors(pub Vec<PlayerColor>);
|
||||||
|
|
||||||
impl PlayerColors {
|
impl PlayerColors {
|
||||||
pub fn local(&self) -> PlayerColor {
|
pub fn local(&self) -> PlayerColor {
|
||||||
|
// todo!("use a valid color");
|
||||||
*self.0.first().unwrap()
|
*self.0.first().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn absent(&self) -> PlayerColor {
|
pub fn absent(&self) -> PlayerColor {
|
||||||
todo!("use a valid color");
|
// todo!("use a valid color");
|
||||||
*self.0.last().unwrap()
|
*self.0.last().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue