chiark / gitweb /
cmdlistener: Make a variable for auth_y
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Mar 2021 23:15:36 +0000 (23:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Mar 2021 23:16:36 +0000 (23:16 +0000)
nfc

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/cmdlistener.rs

index ad8f06eb84050dac8a70a00760aeb361dcdae138..ed7aba55dce282aacd43c228344d113ffa88b81b 100644 (file)
@@ -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)