diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-29 19:27:32 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-29 19:27:32 +0200 |
commit | de71f4b4edcd66e68a79ce15800a7eab0f6ad72c (patch) | |
tree | 95f32bd049d610c00bdc1c308a66639b55892443 /src/imap/mailbox_view.rs | |
parent | 509e7e4bed3b011b5e0b276db3900edb9fee7255 (diff) | |
download | aerogramme-de71f4b4edcd66e68a79ce15800a7eab0f6ad72c.tar.gz aerogramme-de71f4b4edcd66e68a79ce15800a7eab0f6ad72c.zip |
cleanup
Diffstat (limited to 'src/imap/mailbox_view.rs')
-rw-r--r-- | src/imap/mailbox_view.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs index df9c3fe..6b24c8a 100644 --- a/src/imap/mailbox_view.rs +++ b/src/imap/mailbox_view.rs @@ -97,7 +97,7 @@ impl MailboxView { // - notify client of expunged mails let mut n_expunge = 0; - for (i, (uid, uuid)) in self.known_state.idx_by_uid.iter().enumerate() { + for (i, (_uid, uuid)) in self.known_state.idx_by_uid.iter().enumerate() { if !new_view.known_state.table.contains_key(uuid) { data.push(Body::Data(Data::Expunge( NonZeroU32::try_from((i + 1 - n_expunge) as u32).unwrap(), @@ -112,7 +112,7 @@ impl MailboxView { } // - if flags changed for existing mails, tell client - for (i, (uid, uuid)) in new_view.known_state.idx_by_uid.iter().enumerate() { + for (i, (_uid, uuid)) in new_view.known_state.idx_by_uid.iter().enumerate() { let old_mail = self.known_state.table.get(uuid); let new_mail = new_view.known_state.table.get(uuid); if old_mail.is_some() && old_mail != new_mail { @@ -210,10 +210,10 @@ impl MailboxView { }; let mut ret = vec![]; - for (i, uid, uuid, meta, body) in mails { + for (i, uid, uuid, meta, _body) in mails { let mut attributes = vec![MessageAttribute::Uid(uid)]; - let (uid2, flags) = self + let (_uid2, flags) = self .known_state .table .get(&uuid) |