aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-29 19:27:32 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-29 19:27:32 +0200
commitde71f4b4edcd66e68a79ce15800a7eab0f6ad72c (patch)
tree95f32bd049d610c00bdc1c308a66639b55892443
parent509e7e4bed3b011b5e0b276db3900edb9fee7255 (diff)
downloadaerogramme-de71f4b4edcd66e68a79ce15800a7eab0f6ad72c.tar.gz
aerogramme-de71f4b4edcd66e68a79ce15800a7eab0f6ad72c.zip
cleanup
-rw-r--r--src/imap/mailbox_view.rs8
-rw-r--r--src/mail/mailbox.rs4
2 files changed, 6 insertions, 6 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)
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 3ebaa0b..f559d5c 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -2,14 +2,14 @@ use anyhow::{anyhow, bail, Result};
use k2v_client::K2vClient;
use k2v_client::{BatchReadOp, Filter, K2vValue};
use rusoto_s3::{
- DeleteObjectRequest, GetObjectRequest, ListObjectsV2Request, PutObjectRequest, S3Client, S3,
+ DeleteObjectRequest, GetObjectRequest, PutObjectRequest, S3Client, S3,
};
use serde::{Deserialize, Serialize};
use tokio::io::AsyncReadExt;
use tokio::sync::RwLock;
use crate::bayou::Bayou;
-use crate::cryptoblob::{self, gen_key, open_deserialize, seal_serialize, Key};
+use crate::cryptoblob::{self, gen_key, open_deserialize, Key};
use crate::login::Credentials;
use crate::mail::uidindex::*;
use crate::mail::unique_ident::*;