mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +03:00
ci: update to Rust 1.75.0 and fix clippy
This commit is contained in:
@@ -546,8 +546,12 @@ impl Config {
|
||||
}
|
||||
if self.inner.selected_account == id {
|
||||
// reset selected account
|
||||
self.inner.selected_account =
|
||||
self.inner.accounts.get(0).map(|e| e.id).unwrap_or_default();
|
||||
self.inner.selected_account = self
|
||||
.inner
|
||||
.accounts
|
||||
.first()
|
||||
.map(|e| e.id)
|
||||
.unwrap_or_default();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user