chiark / gitweb /
reformat imports
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 27 Nov 2020 23:59:45 +0000 (23:59 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 27 Nov 2020 23:59:45 +0000 (23:59 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/imports.rs

index c4949a21832f4b2336630873cc83c1cd4a1cc7da..645165434f66abbbdf30ef65b4afe1a2dbb66bb7 100644 (file)
@@ -4,27 +4,27 @@
 
 pub use std::borrow::Borrow;
 pub use std::borrow::Cow;
-pub use std::cmp::{self,min,max,Ordering};
+pub use std::cmp::{self, min, max, Ordering};
 pub use std::collections::VecDeque;
-pub use std::collections::{HashMap,hash_map,HashSet};
-pub use std::convert::{TryFrom,TryInto};
+pub use std::collections::{HashMap, hash_map, HashSet};
+pub use std::convert::{TryFrom, TryInto};
 pub use std::env;
 pub use std::error::Error;
 pub use std::fmt::Formatter;
 pub use std::fmt::Write as _;
-pub use std::fmt::{self,Display,Debug};
+pub use std::fmt::{self, Display, Debug};
 pub use std::fs::File;
 pub use std::fs;
 pub use std::hash::Hash;
 pub use std::io::ErrorKind;
-pub use std::io::{BufReader,Read,BufRead,BufWriter,Write};
+pub use std::io::{BufReader, Read, BufRead, BufWriter, Write};
 pub use std::io;
 pub use std::iter::repeat_with;
 pub use std::iter;
 pub use std::marker::PhantomData;
 pub use std::mem;
 pub use std::num::{Wrapping, TryFromIntError};
-pub use std::ops::{Deref,DerefMut};
+pub use std::ops::{Deref, DerefMut};
 pub use std::os::unix::ffi::OsStrExt;
 pub use std::os::unix;
 pub use std::path::PathBuf;
@@ -32,27 +32,28 @@ pub use std::process::exit;
 pub use std::str::FromStr;
 pub use std::str;
 pub use std::string::ParseError;
-pub use std::sync::{Arc,Mutex,MutexGuard,Condvar};
-pub use std::sync::{RwLock,RwLockReadGuard,RwLockWriteGuard};
-pub use std::thread::{self,sleep};
+pub use std::sync::{Arc, Mutex, MutexGuard, Condvar};
+pub use std::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard};
+pub use std::thread::{self, sleep};
 pub use std::time::Duration;
 pub use std::time::Instant;
 
-pub use anyhow::{Context,anyhow};
+pub use anyhow::{Context, anyhow};
 pub use arrayvec::ArrayVec;
 pub use boolinator::Boolinator as _;
 pub use delegate::delegate;
-pub use either::{Either,Left,Right};
-pub use fehler::{throws,throw};
+pub use either::{Either, Left, Right};
+pub use fehler::{throws, throw};
 pub use flexi_logger::{LogSpecification};
 pub use fs2::FileExt;
 pub use if_chain::if_chain;
-pub use index_vec::{define_index_type,index_vec,IndexVec,IndexSlice};
+pub use index_vec::{define_index_type, index_vec, IndexVec, IndexSlice};
 pub use itertools::EitherOrBoth;
 pub use itertools::Itertools;
 pub use lazy_static::lazy_static;
 pub use log::{log, log_enabled};
-pub use log::{trace,debug,info,warn,error};
+pub use log::{trace, debug, info, warn, error};
+pub use nix::unistd::Uid;
 pub use num_traits::{Bounded, FromPrimitive, ToPrimitive};
 pub use ordered_float::OrderedFloat;
 pub use percent_encoding::NON_ALPHANUMERIC;
@@ -63,20 +64,20 @@ pub use rand::distributions::Alphanumeric;
 pub use rand::thread_rng;
 pub use regex::Regex;
 pub use rocket::http::Status;
-pub use rocket::http::{RawStr,ContentType};
+pub use rocket::http::{RawStr, ContentType};
 pub use rocket::request::Request;
-pub use rocket::request::{FromParam,FromRequest,FromFormValue,LenientForm};
+pub use rocket::request::{FromParam, FromRequest, FromFormValue, LenientForm};
 pub use rocket::response::NamedFile;
-pub use rocket::response::{Response,Responder};
+pub use rocket::response::{Response, Responder};
 pub use rocket::response;
-pub use rocket::{State,Rocket};
-pub use rocket::{post,get,routes};
+pub use rocket::{State, Rocket};
+pub use rocket::{post, get, routes};
 pub use rocket_contrib::helmet::*;
 pub use rocket_contrib::json::Json;
 pub use rocket_contrib::templates::Template;
 pub use serde::ser::SerializeTuple;
-pub use serde::{Serialize,Deserialize,de::DeserializeOwned};
-pub use serde::{Serializer,Deserializer};
+pub use serde::{Serialize, Deserialize, de::DeserializeOwned};
+pub use serde::{Serializer, Deserializer};
 pub use serde_with::DeserializeFromStr;
 pub use serde_with::SerializeDisplay;
 pub use slotmap::dense::DenseSlotMap;
@@ -84,7 +85,7 @@ pub use strum::EnumString;
 pub use thiserror::Error;
 pub use vecdeque_stableix::Deque as StableIndexVecDeque;
 
-pub type SecondarySlotMap<K,V> = slotmap::secondary::SecondaryMap<K,V>;
+pub use zcoord::{self, ZCoord};
 
 pub use crate::global::*;
 pub use crate::gamestate::*;
@@ -109,9 +110,9 @@ pub use crate::accounts::*;
 pub use crate::accounts::loaded_acl::{self,LoadedAcl,EffectiveACL,PermSet};
 pub use crate::toml_de;
 
-pub use zcoord::{self, ZCoord};
-
-pub use nix::unistd::Uid;
+pub type SecondarySlotMap<K,V> = slotmap::secondary::SecondaryMap<K,V>;
+pub type SvgData = Vec<u8>;
+pub type Colour = Html;
 
 pub fn default<T:Default>() -> T { Default::default() }
 
@@ -124,5 +125,3 @@ pub type AE = anyhow::Error;
 
 pub type OE = OnlineError;
 
-pub type SvgData = Vec<u8>;
-pub type Colour = Html;