From: Ian Jackson Date: Sun, 14 Mar 2021 23:15:36 +0000 (+0000) Subject: cmdlistener: Make a variable for auth_y X-Git-Tag: otter-0.4.0~45 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c16688604381e1e87f8ec506036d756520770062;p=otter.git cmdlistener: Make a variable for auth_y nfc Signed-off-by: Ian Jackson --- diff --git a/daemon/cmdlistener.rs b/daemon/cmdlistener.rs index ad8f06eb..ed7aba55 100644 --- a/daemon/cmdlistener.rs +++ b/daemon/cmdlistener.rs @@ -784,7 +784,8 @@ fn execute_for_game<'cs, 'igr, 'ig: 'igr>( uh.accumulate(ig, updates)?; responses.push(resp); match for_prepub { None => (), Some(x) => match x { }}; - auth = Some(Authorisation::authorised(&*ig.name)); + let auth_y = Authorisation::authorised(&*ig.name); + auth = Some(auth_y); } if let Some(auth) = auth { uh.complete(igu.by_mut(auth), &who)?; } Ok(None)