From c16688604381e1e87f8ec506036d756520770062 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Mar 2021 23:15:36 +0000 Subject: [PATCH] cmdlistener: Make a variable for auth_y nfc Signed-off-by: Ian Jackson --- daemon/cmdlistener.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2