diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-29 16:05:34 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-29 16:05:34 +0200 |
commit | 733c59ed8060f8903d723635ed2e7c13ccca7974 (patch) | |
tree | 0090b72c1c347a7168a825341683481f0d1845cc /src/imap | |
parent | 9ef069923bbf7358caf1f2739befe20adbdca760 (diff) | |
download | aerogramme-733c59ed8060f8903d723635ed2e7c13ccca7974.tar.gz aerogramme-733c59ed8060f8903d723635ed2e7c13ccca7974.zip |
Cleanup and remove useless imports
Diffstat (limited to 'src/imap')
-rw-r--r-- | src/imap/command/anonymous.rs | 2 | ||||
-rw-r--r-- | src/imap/command/authenticated.rs | 9 | ||||
-rw-r--r-- | src/imap/command/selected.rs | 1 | ||||
-rw-r--r-- | src/imap/flow.rs | 1 | ||||
-rw-r--r-- | src/imap/mailbox_view.rs | 4 |
5 files changed, 4 insertions, 13 deletions
diff --git a/src/imap/command/anonymous.rs b/src/imap/command/anonymous.rs index 8cd986c..84d0dca 100644 --- a/src/imap/command/anonymous.rs +++ b/src/imap/command/anonymous.rs @@ -69,8 +69,6 @@ impl<'a> AnonymousContext<'a> { Ok(c) => c, }; - let s3_client = creds.s3_client(); - let k2v_client = creds.k2v_client(); let user = User::new(u.clone(), creds)?; tracing::info!(username=%u, "connected"); diff --git a/src/imap/command/authenticated.rs b/src/imap/command/authenticated.rs index 443edda..8e8d969 100644 --- a/src/imap/command/authenticated.rs +++ b/src/imap/command/authenticated.rs @@ -1,16 +1,13 @@ -use anyhow::{Error, Result}; -use boitalettres::proto::{res::body::Data as Body, Request, Response}; +use anyhow::Result; +use boitalettres::proto::{Request, Response}; use imap_codec::types::command::CommandBody; -use imap_codec::types::core::Atom; -use imap_codec::types::flag::Flag; use imap_codec::types::mailbox::{ListMailbox, Mailbox as MailboxCodec}; -use imap_codec::types::response::{Code, Data, Status}; +use imap_codec::types::response::Code; use crate::imap::command::anonymous; use crate::imap::flow; use crate::imap::mailbox_view::MailboxView; -use crate::mail::mailbox::Mailbox; use crate::mail::user::User; pub struct AuthenticatedContext<'a> { diff --git a/src/imap/command/selected.rs b/src/imap/command/selected.rs index 4e3ff2f..cfc40c3 100644 --- a/src/imap/command/selected.rs +++ b/src/imap/command/selected.rs @@ -11,7 +11,6 @@ use crate::imap::command::authenticated; use crate::imap::flow; use crate::imap::mailbox_view::MailboxView; -use crate::mail::mailbox::Mailbox; use crate::mail::user::User; pub struct SelectedContext<'a> { diff --git a/src/imap/flow.rs b/src/imap/flow.rs index c9d7e40..e1ea99f 100644 --- a/src/imap/flow.rs +++ b/src/imap/flow.rs @@ -2,7 +2,6 @@ use std::error::Error as StdError; use std::fmt; use crate::imap::mailbox_view::MailboxView; -use crate::mail::mailbox::Mailbox; use crate::mail::user::User; #[derive(Debug)] diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs index ee36911..76ca80c 100644 --- a/src/imap/mailbox_view.rs +++ b/src/imap/mailbox_view.rs @@ -1,11 +1,9 @@ use std::sync::Arc; use anyhow::{Error, Result}; -use boitalettres::proto::{res::body::Data as Body, Request, Response}; -use imap_codec::types::command::CommandBody; +use boitalettres::proto::res::body::Data as Body; use imap_codec::types::core::Atom; use imap_codec::types::flag::Flag; -use imap_codec::types::mailbox::{ListMailbox, Mailbox as MailboxCodec}; use imap_codec::types::response::{Code, Data, Status}; use crate::mail::mailbox::Mailbox; |