aboutsummaryrefslogtreecommitdiff
path: root/src/moves.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-02-23 13:21:57 +0300
committereug-vs <eugene@eug-vs.xyz>2023-02-23 14:01:19 +0300
commit43dc24718c442ef45f6cecf5790df0ab84a72cfc (patch)
tree16f446b1d5a3e0fdf638e0bcab16cf34ec338bd8 /src/moves.rs
parentf60c573ba71207c18a28413e3940a4e21b07c73f (diff)
downloadchessnost-43dc24718c442ef45f6cecf5790df0ab84a72cfc.tar.gz
refactor: apply clippy suggestions
Diffstat (limited to 'src/moves.rs')
-rw-r--r--src/moves.rs6
1 files changed, 1 insertions, 5 deletions
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)
}
}