Fix warnings

This commit is contained in:
timotree3 2023-01-19 23:30:55 -05:00
parent eb623454d7
commit 3eb0893474
2 changed files with 4 additions and 4 deletions

View File

@ -589,7 +589,7 @@ impl GameState {
.collect::<FnvHashMap<_, _>>();
let unannotated_hands = hands
.iter()
.map(|(player, hand)| (player.clone(), strip_annotations(hand)))
.map(|(player, hand)| (*player, strip_annotations(hand)))
.collect::<FnvHashMap<_, _>>();
GameState {
@ -629,7 +629,7 @@ impl GameState {
}
fn update_player_hand(&mut self) {
let player = self.board.player.clone();
let player = self.board.player;
self.unannotated_hands
.insert(player, strip_annotations(self.hands.get(&player).unwrap()));
}

View File

@ -199,8 +199,8 @@ where
}
}
let (game, json_output) = simulate_once(
&opts,
strat_config_ref.initialize(&opts),
opts,
strat_config_ref.initialize(opts),
seed,
json_output_pattern_ref.is_some(),
);