aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-12 15:31:29 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-12 15:31:29 +0200
commit5d6e4f73322b26038e76e6f915c6c79c5f03566e (patch)
treefe052de771cb5fb6f28cbcba03c2c63993063c70 /src/mail
parent7b888ed8cfecc30468c4a33e1f0a3e4bbced5df4 (diff)
downloadaerogramme-5d6e4f73322b26038e76e6f915c6c79c5f03566e.tar.gz
aerogramme-5d6e4f73322b26038e76e6f915c6c79c5f03566e.zip
cleanup
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/incoming.rs7
-rw-r--r--src/mail/mailbox.rs2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mail/incoming.rs b/src/mail/incoming.rs
index 3a1e4f9..f64b9f3 100644
--- a/src/mail/incoming.rs
+++ b/src/mail/incoming.rs
@@ -1,15 +1,14 @@
use std::collections::HashMap;
use std::convert::TryFrom;
-use std::pin::Pin;
+
use std::sync::{Arc, Weak};
use std::time::Duration;
use anyhow::{anyhow, bail, Result};
-use futures::{future::BoxFuture, Future, FutureExt};
+use futures::{future::BoxFuture, FutureExt};
use k2v_client::{CausalValue, CausalityToken, K2vClient, K2vValue};
use rusoto_s3::{
- DeleteObjectRequest, GetObjectRequest, HeadObjectRequest, ListObjectsV2Request,
- PutObjectRequest, S3Client, S3,
+ DeleteObjectRequest, GetObjectRequest, ListObjectsV2Request, PutObjectRequest, S3Client, S3,
};
use tokio::io::AsyncReadExt;
use tokio::sync::watch;
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 7389173..efe98fd 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -125,7 +125,7 @@ impl Mailbox {
bail!("Cannot copy into same mailbox");
}
- let (mut selflock, mut fromlock);
+ let (mut selflock, fromlock);
if self.id < from.id {
selflock = self.mbox.write().await;
fromlock = from.mbox.write().await;