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

index 7297a63a075bdabc6bdbeb8d4990b6a67193c5f4..f4e29f7c6e407e02429d4a0cd9309cdcce672ed8 100644 (file)
@@ -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;
index 6325f51a67a90ed513255b66597f71795860f9ac..fd107727084bdd5b616e4722f6a20ff1ed8fa7a7 100644 (file)
@@ -13,8 +13,8 @@ pub enum MgmtChannelReadError {
 display_as_debug!{MgmtChannelReadError}
 
 pub struct MgmtChannel {
-  read : io::Lines<BufReader<Box<dyn Read>>>,
-  write : BufWriter<Box<dyn Write>>,
+  read: io::Lines<BufReader<Box<dyn Read>>>,
+  write: BufWriter<Box<dyn Write>>,
 }
 
 impl MgmtChannel {
@@ -46,7 +46,7 @@ impl MgmtChannel {
   }
 }
 
-pub trait IoTryClone : Sized {
+pub trait IoTryClone: Sized {
   fn try_clone(&self) -> io::Result<Self>;
 }