mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-19 03:25:38 +00:00
ui/accounts: don't panic if Backend::folders is_err
This commit is contained in:
parent
328b17a995
commit
d69be5bb0b
@ -310,7 +310,13 @@ impl Account {
|
||||
|
||||
fn init(&mut self) {
|
||||
let ref_folders: FnvHashMap<FolderHash, Folder> =
|
||||
self.backend.read().unwrap().folders().unwrap();
|
||||
match self.backend.read().unwrap().folders() {
|
||||
Ok(f) => f,
|
||||
Err(err) => {
|
||||
debug!(&err);
|
||||
return;
|
||||
}
|
||||
};
|
||||
let mut folders: FnvHashMap<FolderHash, MailboxEntry> =
|
||||
FnvHashMap::with_capacity_and_hasher(ref_folders.len(), Default::default());
|
||||
let mut folders_order: Vec<FolderHash> = Vec::with_capacity(ref_folders.len());
|
||||
|
Loading…
Reference in New Issue
Block a user