chiark / gitweb /
formatting, some from rustfmt (manually picked)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Dec 2020 00:42:42 +0000 (00:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Dec 2020 00:42:42 +0000 (00:42 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/cmdlistener.rs

index b9d7c8473d15e7d045c4d42fee68babb66db11dd..ed4d67407f09457810318cf25a3213b8243945dd 100644 (file)
@@ -746,14 +746,12 @@ impl UpdateHandler {
         }
         buf.log_updates(updates.log);
         buf.raw_updates(raw);
-      },
+      }
     }
   }
 
   #[throws(SVGProcessingError)]
-  fn complete(self,
-              g: &mut InstanceGuard,
-              who: &Html) {
+  fn complete(self, g: &mut InstanceGuard, who: &Html) {
     use UpdateHandler::*;
     match self {
       Bulk(bulk) => {
@@ -765,13 +763,13 @@ impl UpdateHandler {
 
         if bulk.logs {
           buf.log_updates(vec![LogEntry {
-            html: Html(format!("{} (re)configured the game", &who.0))
+            html: Html(format!("{} (re)configured the game", &who.0)),
           }]);
         }
 
         buf.raw_updates(bulk.raw);
-      },
-      Online => { },
+      }
+      Online => {}
     }
   }
 }