refact: fix clippy warnings
This commit is contained in:
parent
25acc86059
commit
37cc50ed2a
8 changed files with 140 additions and 137 deletions
|
|
@ -76,6 +76,7 @@ pub enum CurrentPlayer {
|
|||
|
||||
impl CurrentPlayer {
|
||||
/// Returns the other player, i.e. the player who is not the current player.
|
||||
#[cfg(test)]
|
||||
pub fn other(&self) -> Self {
|
||||
match *self {
|
||||
CurrentPlayer::Nobody => CurrentPlayer::Nobody,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue