};
let res = (||{
for insn in insns.drain(0..) {
- let (updates, resp, for_prepub, ig) =
+ let (updates, resp, unprepared, ig) =
execute_game_insn(cs, ag, igu, insn, &who,
&mut to_permute)?;
uh.accumulate(ig, updates)?;
responses.push(resp);
let auth_y = Authorisation::authorised(&*ig.name);
auth = Some(auth_y);
- if let Some(for_prepub) = for_prepub {
+ if let Some(unprepared) = unprepared {
uh.complete(ig, &who)?;
let mut prepub = PrepareUpdatesBuffer::new(ig, None, None);
- for_prepub(&mut prepub);
+ unprepared(&mut prepub);
prepub.finish();
uh = UpdateHandler::from_how(how);
}