refact: fix clippy warnings

This commit is contained in:
Henri Bourcereau 2024-11-07 12:52:57 +01:00
parent 25acc86059
commit 37cc50ed2a
8 changed files with 140 additions and 137 deletions

View file

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