From 4cfc8bbd0183751898aa0d121cbc84eebf83d446 Mon Sep 17 00:00:00 2001 From: Carsten Wenderdel Date: Fri, 14 Jun 2024 00:07:04 +0200 Subject: [PATCH] Make Clippy happy --- crates/engine/src/position/mixed_moves.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/position/mixed_moves.rs b/crates/engine/src/position/mixed_moves.rs index 92e5d7e..9d4ca3b 100644 --- a/crates/engine/src/position/mixed_moves.rs +++ b/crates/engine/src/position/mixed_moves.rs @@ -40,6 +40,7 @@ impl Position { let position = self.clone_and_enter_single_checker(dice.small); enter_small = Some(position); let range = if different_outcomes { + #[allow(clippy::reversed_empty_ranges)] (dice.big + 1..X_BAR).chain(1..0) } else { // In case move a single checker with both dice, we don't want to count that twice. @@ -59,7 +60,7 @@ impl Position { } else if let Some(position) = enter_small { moves.push(position); } else { - moves.push(self.clone()); + moves.push(*self); } } moves