From 44a655e09307168b60846cd15b78ee283df7dfa3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 5 Dec 2020 23:21:42 +0000 Subject: [PATCH] edit rustfmt file Signed-off-by: Ian Jackson --- rustfmt.toml | 2 +- src/accounts.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.2