Include a serde feature in the shared crate
This commit is contained in:
@@ -54,11 +54,7 @@ impl Hand {
|
||||
}
|
||||
|
||||
pub fn remove(&mut self, idx: usize) -> Option<Tile> {
|
||||
if idx < self.tiles.len() {
|
||||
Some(self.tiles.remove(idx))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
(idx < self.tiles.len()).then(|| self.tiles.remove(idx))
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = &Tile> {
|
||||
|
Reference in New Issue
Block a user