Fix warnings
This commit is contained in:
parent
eb623454d7
commit
3eb0893474
2 changed files with 4 additions and 4 deletions
|
@ -589,7 +589,7 @@ impl GameState {
|
||||||
.collect::<FnvHashMap<_, _>>();
|
.collect::<FnvHashMap<_, _>>();
|
||||||
let unannotated_hands = hands
|
let unannotated_hands = hands
|
||||||
.iter()
|
.iter()
|
||||||
.map(|(player, hand)| (player.clone(), strip_annotations(hand)))
|
.map(|(player, hand)| (*player, strip_annotations(hand)))
|
||||||
.collect::<FnvHashMap<_, _>>();
|
.collect::<FnvHashMap<_, _>>();
|
||||||
|
|
||||||
GameState {
|
GameState {
|
||||||
|
@ -629,7 +629,7 @@ impl GameState {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_player_hand(&mut self) {
|
fn update_player_hand(&mut self) {
|
||||||
let player = self.board.player.clone();
|
let player = self.board.player;
|
||||||
self.unannotated_hands
|
self.unannotated_hands
|
||||||
.insert(player, strip_annotations(self.hands.get(&player).unwrap()));
|
.insert(player, strip_annotations(self.hands.get(&player).unwrap()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,8 +199,8 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let (game, json_output) = simulate_once(
|
let (game, json_output) = simulate_once(
|
||||||
&opts,
|
opts,
|
||||||
strat_config_ref.initialize(&opts),
|
strat_config_ref.initialize(opts),
|
||||||
seed,
|
seed,
|
||||||
json_output_pattern_ref.is_some(),
|
json_output_pattern_ref.is_some(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue