Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bkushigian committed Oct 13, 2024
1 parent d262840 commit 04d40ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,14 @@ impl CardConfig {
cards.len()
))
} else {
let turn = cards.get(3).unwrap_or_else(|| &NOT_DEALT);
let river = cards.get(4).unwrap_or_else(|| &NOT_DEALT);
let turn = cards.get(3).unwrap_or(&NOT_DEALT);
let river = cards.get(4).unwrap_or(&NOT_DEALT);
let mut flop: [Card; 3] = [cards[0], cards[1], cards[2]];
flop.sort_by(|a, b| b.partial_cmp(a).unwrap());

Ok(Self {
range: self.range.clone(),
flop: flop,
range: self.range,
flop,
turn: *turn,
river: *river,
})
Expand Down

0 comments on commit 04d40ab

Please sign in to comment.