Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
carsten-wenderdel committed Jun 13, 2024
1 parent c0fde3c commit 4cfc8bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/engine/src/position/mixed_moves.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 4cfc8bb

Please sign in to comment.