From 1ffe464ed8d5355ef4e3740a92f2b3918a0acdd2 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Mon, 6 Sep 2021 16:57:36 -0400 Subject: [PATCH] cargo fmt --- src/accountmanager.rs | 5 ++++- src/main.rs | 13 ++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/accountmanager.rs b/src/accountmanager.rs index e5ae3ea..e389f7b 100644 --- a/src/accountmanager.rs +++ b/src/accountmanager.rs @@ -145,7 +145,10 @@ impl Manifest { let file = File::open(path)?; let reader = BufReader::new(file); let account: SteamGuardAccount = serde_json::from_reader(reader)?; - ensure!(!self.account_exists(&account.account_name), "Account already exists in manifest, please remove it first."); + ensure!( + !self.account_exists(&account.account_name), + "Account already exists in manifest, please remove it first." + ); self.add_account(account); return Ok(()); diff --git a/src/main.rs b/src/main.rs index 501dddd..293c358 100644 --- a/src/main.rs +++ b/src/main.rs @@ -213,9 +213,13 @@ fn main() { print!("Username: "); let username = tui::prompt(); if manifest.account_exists(&username) { - error!("Account {} already exists in manifest, remove it first", username); + error!( + "Account {} already exists in manifest, remove it first", + username + ); } - let session = do_login_raw(username).expect("Failed to log in. Account has not been linked."); + let session = + do_login_raw(username).expect("Failed to log in. Account has not been linked."); let mut linker = AccountLinker::new(session); let account: SteamGuardAccount; @@ -461,7 +465,10 @@ fn main() { "Failed to remove authenticator from {}", account.account_name ); - match tui::prompt_char("Would you like to remove it from the manifest anyway?", "yN") { + match tui::prompt_char( + "Would you like to remove it from the manifest anyway?", + "yN", + ) { 'y' => { successful.push(account.account_name.clone()); }