aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
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;