From: Ian Jackson Date: Sat, 5 Dec 2020 23:21:42 +0000 (+0000) Subject: edit rustfmt file X-Git-Tag: otter-0.2.0~267 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=44a655e09307168b60846cd15b78ee283df7dfa3;p=otter.git edit rustfmt file Signed-off-by: Ian Jackson --- diff --git a/rustfmt.toml b/rustfmt.toml index a6b4d8f5..4cf7d4d6 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,6 +1,6 @@ merge_imports = false overflow_delimited_expr = true -struct_field_align_threshold = 4 +struct_field_align_threshold = 0 tab_spaces = 2 unstable_features = true use_field_init_shorthand = true diff --git a/src/accounts.rs b/src/accounts.rs index ee3b66fd..57885f9e 100644 --- a/src/accounts.rs +++ b/src/accounts.rs @@ -16,7 +16,7 @@ slotmap::new_key_type!{ #[derive(Eq,PartialEq,Ord,PartialOrd,Hash)] pub enum AccountScope { Server, - Unix { user : String }, + Unix { user: String }, } type AS = AccountScope; @@ -35,10 +35,10 @@ pub struct AccountName { /// without invalidating old tokens and permissions check. #[derive(Serialize,Deserialize,Debug)] #[serde(transparent)] -pub struct AccessRecord (Arc); +pub struct AccessRecord(Arc); #[derive(Debug)] -pub struct AccountsGuard (MutexGuard<'static, Option>); +pub struct AccountsGuard(MutexGuard<'static, Option>); //---------- data structure