From: Ian Jackson Date: Sun, 6 Dec 2020 01:23:13 +0000 (+0000) Subject: formatting, some from rustfmt (manually picked) X-Git-Tag: otter-0.2.0~234 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a4c2a58b7c528047979297b9a24c5a2bd40c82a6;p=otter.git formatting, some from rustfmt (manually picked) Signed-off-by: Ian Jackson --- diff --git a/src/lib.rs b/src/lib.rs index 7297a63a..f4e29f7c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,26 +7,27 @@ #![allow(clippy::redundant_closure_call)] -pub mod imports; -pub mod global; -pub mod pieces; -pub mod gamestate; -pub mod keydata; -pub mod updates; -pub mod sse; -pub mod error; -pub mod session; +pub mod accounts; pub mod api; -pub mod spec; pub mod cmdlistener; pub mod commands; -pub mod utils; -pub mod mgmtchannel; +pub mod config; pub mod debugreader; +pub mod error; +pub mod gamestate; +pub mod global; +pub mod imports; +pub mod keydata; +pub mod mgmtchannel; +pub mod nwtemplates; +pub mod pieces; +pub mod session; pub mod shapelib; +pub mod spec; +pub mod sse; pub mod tz; -pub mod accounts; -pub mod config; -pub mod nwtemplates; -#[path="toml-de.rs"] pub mod toml_de; -#[path="slotmap-slot-idx.rs"] pub mod slotmap_slot_idx; +pub mod updates; +pub mod utils; + +#[path = "slotmap-slot-idx.rs"] pub mod slotmap_slot_idx; +#[path = "toml-de.rs"] pub mod toml_de; diff --git a/src/mgmtchannel.rs b/src/mgmtchannel.rs index 6325f51a..fd107727 100644 --- a/src/mgmtchannel.rs +++ b/src/mgmtchannel.rs @@ -13,8 +13,8 @@ pub enum MgmtChannelReadError { display_as_debug!{MgmtChannelReadError} pub struct MgmtChannel { - read : io::Lines>>, - write : BufWriter>, + read: io::Lines>>, + write: BufWriter>, } impl MgmtChannel { @@ -46,7 +46,7 @@ impl MgmtChannel { } } -pub trait IoTryClone : Sized { +pub trait IoTryClone: Sized { fn try_clone(&self) -> io::Result; }