From b2cb7a6c87c921d6311896dd8071b714ce54440d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 3 Mar 2021 00:12:57 +0000 Subject: [PATCH] hidden: pass &mut GPlayers Signed-off-by: Ian Jackson --- src/hidden.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hidden.rs b/src/hidden.rs index d52a20b7..9f1a9fd0 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -373,7 +373,7 @@ mod vpid { #[allow(unused_variables)] pub fn permute(occid: OccId, occ: &mut Occultation, - gplayers: &GPlayers, + gplayers: &mut GPlayers, gpieces: &mut GPieces, ipieces: &IPieces) { // We must permute for if we have any views that are scrambled @@ -688,7 +688,7 @@ pub fn recalculate_occultation_piece( log } ), - to_recompute.implement(&gs.players, &mut gs.pieces, &mut gs.occults, + to_recompute.implement(&mut gs.players, &mut gs.pieces, &mut gs.occults, ipieces), ))? } @@ -732,7 +732,7 @@ mod recompute { } pub fn mark_dirty(&mut self, occid: OccId) { self.outdated.insert(occid); } pub fn implement(self, - gplayers: &GPlayers, + gplayers: &mut GPlayers, gpieces: &mut GPieces, goccults: &mut GameOccults, ipieces: &IPieces) -> Implemented { @@ -786,7 +786,7 @@ impl OccultationViewDef for OwnerOccultationView { #[throws(OnlineError)] pub fn create_occultation( - gplayers: &GPlayers, + gplayers: &mut GPlayers, gpieces: &mut GPieces, goccults: &mut GameOccults, ipieces: &IPieces, @@ -859,7 +859,7 @@ pub fn create_occultation( #[throws(IE)] pub fn remove_occultation( - gplayers: &GPlayers, + gplayers: &mut GPlayers, gpieces: &mut GPieces, goccults: &mut GameOccults, ipieces: &IPieces, -- 2.30.2