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
#[derive(Eq,PartialEq,Ord,PartialOrd,Hash)]
pub enum AccountScope {
Server,
- Unix { user : String },
+ Unix { user: String },
}
type AS = AccountScope;
/// 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