From 43dc24718c442ef45f6cecf5790df0ab84a72cfc Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 23 Feb 2023 13:21:57 +0300 Subject: refactor: apply clippy suggestions --- src/moves.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/moves.rs') diff --git a/src/moves.rs b/src/moves.rs index 858fe43..e27d74c 100644 --- a/src/moves.rs +++ b/src/moves.rs @@ -25,10 +25,6 @@ impl Move { /// Tactical move is a move that changes material score pub fn is_tactical(&self) -> bool { - match self.kind { - MoveKind::Capture => true, - MoveKind::EnPassant => true, - _ => false, - } + matches!(self.kind, MoveKind::Capture | MoveKind::EnPassant) } } -- cgit v1.2.3