From d33521a2d30f820aeacc20cc557ac94e0d47451c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 5 Dec 2020 23:43:20 +0000 Subject: [PATCH] formatting, mostly from rustfmt (manually picked) Signed-off-by: Ian Jackson --- src/accounts.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounts.rs b/src/accounts.rs index 0e2dd53a..4eaea255 100644 --- a/src/accounts.rs +++ b/src/accounts.rs @@ -416,8 +416,8 @@ pub fn load_accounts() { e@ Err(_) => e.with_context(|| path.clone())?, }; let mut f = BufReader::new(f); - let accounts : Accounts = rmp_serde::decode::from_read(&mut f)?; - let chk = |acctid: AccountId, account: &Arc| if_chain! { + let accounts: Accounts = rmp_serde::decode::from_read(&mut f)?; + let chk = |acctid: AccountId, account: &Arc| if_chain!{ if accounts.names.get(account) == Some(&acctid); if let Some(got_record) = accounts.records.get(acctid); if &got_record.account == account; @@ -438,8 +438,8 @@ pub mod loaded_acl { Copy + Eq + Hash + Sync + Send + 'static { type Auth; - const NOT_FOUND : MgmtError; - const TEST_EXISTENCE : Self; + const NOT_FOUND: MgmtError; + const TEST_EXISTENCE: Self; } #[derive(Copy,Clone,Debug)] -- 2.30.2