ui/accounts: remove Index<usize> impls

memfd
Manos Pitsidianakis 2020-02-10 00:41:06 +02:00
parent aab6b02db2
commit b50e770b5a
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 0 additions and 14 deletions

View File

@ -1153,20 +1153,6 @@ impl IndexMut<FolderHash> for Account {
}
}
impl Index<usize> for Account {
type Output = MailboxEntry;
fn index(&self, index: usize) -> &MailboxEntry {
&self.folders[&self.folders_order[index]]
}
}
/// Will panic if mailbox hasn't loaded, ask `status()` first.
impl IndexMut<usize> for Account {
fn index_mut(&mut self, index: usize) -> &mut MailboxEntry {
self.folders.get_mut(&self.folders_order[index]).unwrap()
}
}
fn build_folders_order(
tree: &mut Vec<FolderNode>,
ref_folders: &FnvHashMap<FolderHash, Folder>,