chiark / gitweb /
edit rustfmt file
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 5 Dec 2020 23:21:42 +0000 (23:21 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 5 Dec 2020 23:21:42 +0000 (23:21 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
rustfmt.toml
src/accounts.rs

index a6b4d8f59ef6519ad1b2bcaba637b0ca0c59d5b9..4cf7d4d6605b4dbc3404536307cdb442fb413604 100644 (file)
@@ -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
index ee3b66fd237b4952ee1835bd9ed8eeabaca8f534..57885f9ea50bd45b80f8f3f0c7571e1264380b7e 100644 (file)
@@ -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<dyn PlayerAccessSpec>);
+pub struct AccessRecord(Arc<dyn PlayerAccessSpec>);
 
 #[derive(Debug)]
-pub struct AccountsGuard (MutexGuard<'static, Option<Accounts>>);
+pub struct AccountsGuard(MutexGuard<'static, Option<Accounts>>);
 
 //---------- data structure