From 3e9ce3edffd0029b3f461c56e7f5e5592bcd77cf Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Thu, 7 May 2020 06:50:19 -0600 Subject: [PATCH] fix tests --- secert-hitler/src/controller/gamemaster/gamemaster/game.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/secert-hitler/src/controller/gamemaster/gamemaster/game.rs b/secert-hitler/src/controller/gamemaster/gamemaster/game.rs index 711557e..60264e9 100644 --- a/secert-hitler/src/controller/gamemaster/gamemaster/game.rs +++ b/secert-hitler/src/controller/gamemaster/gamemaster/game.rs @@ -46,7 +46,8 @@ impl GameMaster { debug!("no chancellor candidates found in election set"); return self.game_election(); } - if self.player(chancellor_candidate.last().unwrap().clone()).is_none() { + let chancellor_candidate = chancellor_candidate.last().unwrap(); + if self.player(chancellor_candidate.clone()).is_none() { debug!("invalid chancellor candidates found in election set"); return self.game_election(); }