From: Ian Jackson Date: Sun, 6 Dec 2020 00:42:42 +0000 (+0000) Subject: formatting, some from rustfmt (manually picked) X-Git-Tag: otter-0.2.0~248 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f111314750d1ce73b8713c0450211f0f7930e230;p=otter.git formatting, some from rustfmt (manually picked) Signed-off-by: Ian Jackson --- diff --git a/src/cmdlistener.rs b/src/cmdlistener.rs index b9d7c847..ed4d6740 100644 --- a/src/cmdlistener.rs +++ b/src/cmdlistener.rs @@ -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 => {} } } }