From 23d11ce52328303c3acc4ec6f68d0b0dcaeed5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Thu, 21 Sep 2023 13:43:31 +0200 Subject: [PATCH] rustfmt --- nym-wallet/src-tauri/src/operations/mixnet/account.rs | 7 +------ nym-wallet/src-tauri/src/wallet_storage/account_data.rs | 6 +++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/nym-wallet/src-tauri/src/operations/mixnet/account.rs b/nym-wallet/src-tauri/src/operations/mixnet/account.rs index acc59539d0..6704009cb3 100644 --- a/nym-wallet/src-tauri/src/operations/mixnet/account.rs +++ b/nym-wallet/src-tauri/src/operations/mixnet/account.rs @@ -560,12 +560,7 @@ pub async fn rename_account_for_password( let login_id = wallet_storage::LoginId::new(DEFAULT_LOGIN_ID.to_string()); let account_id = wallet_storage::AccountId::new(account_id.to_string()); let new_account_id = wallet_storage::AccountId::new(new_account_id.to_string()); - wallet_storage::rename_account_in_login( - &login_id, - &account_id, - &new_account_id, - &password, - )?; + wallet_storage::rename_account_in_login(&login_id, &account_id, &new_account_id, &password)?; // Load from storage to reset the internal tuari state let stored_login = wallet_storage::load_existing_login(&login_id, &password)?; diff --git a/nym-wallet/src-tauri/src/wallet_storage/account_data.rs b/nym-wallet/src-tauri/src/wallet_storage/account_data.rs index d4ec75a009..6c235bed34 100644 --- a/nym-wallet/src-tauri/src/wallet_storage/account_data.rs +++ b/nym-wallet/src-tauri/src/wallet_storage/account_data.rs @@ -278,7 +278,11 @@ impl MultipleAccounts { Ok(()) } - pub(crate) fn rename(&mut self, id: &AccountId, new_id: &AccountId) -> Result<(), BackendError> { + pub(crate) fn rename( + &mut self, + id: &AccountId, + new_id: &AccountId, + ) -> Result<(), BackendError> { if self.get_account(new_id).is_some() { return Err(BackendError::WalletAccountIdAlreadyExistsInWalletLogin); }