fixed fmt

This commit is contained in:
objz committed 2026-08-24 19:17:37 +02:00
1 parent e99e307790
commit e1cce7b5b3
5 files changed
+22 -18

No files matched your search

+1 -4
View File
@@ -128,10 +128,7 @@ impl AccountStore {
let replaced = self.accounts.iter().any(|a| a.uuid == *uuid);
// re-adding the currently active account must not drop the selection:
// the replacement takes over the old account's active flag.
let replaced_active = self
.accounts
.iter()
.any(|a| a.uuid == *uuid && a.active);
let replaced_active = self.accounts.iter().any(|a| a.uuid == *uuid && a.active);
let account_type = account.account_type.clone();
let username = account.username.clone();
self.accounts.retain(|a| a.uuid != *uuid);