chiark / gitweb /
Revert "cmd updates: Improve arguments to accumulate"
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Apr 2021 09:58:52 +0000 (10:58 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Apr 2021 10:37:58 +0000 (11:37 +0100)
This is no longer needed, then.

This reverts commit b2ea5402ca1d60dc2d2249b021e7134ae2acd935.

daemon/cmdlistener.rs

index b7dfdd6730ebbf2007307b6dfd86f7520c0a0447..bcffb751c114d52bdabe5991eed6d9ca2467da3f 100644 (file)
@@ -873,7 +873,7 @@ fn execute_for_game<'cs, 'igr, 'ig: 'igr>(
         let uh = mk_uh();
         (uh, auth_y)
       });
-      uh.accumulate(ig, updates, &who)?;
+      uh.accumulate(ig, updates)?;
       responses.push(resp);
       if let Some(unprepared) = unprepared {
         let uh = mem::replace(uh, mk_uh());
@@ -944,9 +944,8 @@ impl UpdateHandler {
   }
 
   #[throws(SVGProcessingError)]
-  fn accumulate(&mut self, g: &mut InstanceGuard,
-                updates: ExecuteGameChangeUpdates,
-                who: &Html) {
+  fn accumulate(&mut self, g: &mut Instance,
+                updates: ExecuteGameChangeUpdates) {
     let mut raw = updates.raw.unwrap_or_default();
     use UpdateHandler::*;
     match self {