From 04d40abfff8a270b536b40229e99329653d7dfd0 Mon Sep 17 00:00:00 2001 From: bkushigian Date: Sun, 13 Oct 2024 15:32:16 -0400 Subject: [PATCH] clippy --- src/card.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/card.rs b/src/card.rs index dc313f5..0d7bdfa 100644 --- a/src/card.rs +++ b/src/card.rs @@ -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, })