aboutsummaryrefslogtreecommitdiff
path: root/src/command.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-13 11:44:02 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-13 11:44:02 +0200
commit4914c453778db4198b7de667cd4e196b051079a1 (patch)
tree5b9dc422a69ba27d6d12a68452095e1b5299be52 /src/command.rs
parent1e4d5eb8f1fe1d7abe726572b9ee063d91f72a98 (diff)
downloadaerogramme-4914c453778db4198b7de667cd4e196b051079a1.tar.gz
aerogramme-4914c453778db4198b7de667cd4e196b051079a1.zip
It compiles
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command.rs b/src/command.rs
index 4c2ec41..a9b39e4 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -1,5 +1,3 @@
-use std::sync::{Arc, Mutex};
-
use boitalettres::errors::Error as BalError;
use boitalettres::proto::{Request, Response};
use imap_codec::types::core::{Tag, AString};
@@ -10,15 +8,15 @@ use imap_codec::types::fetch_attributes::MacroOrFetchAttributes;
use crate::mailstore::Mailstore;
use crate::mailbox::Mailbox;
-use crate::service::Session;
+use crate::session;
pub struct Command<'a> {
tag: Tag,
- session: &'a mut Session,
+ session: &'a mut session::Instance,
}
impl<'a> Command<'a> {
- pub fn new(tag: Tag, session: &'a mut Session) -> Self {
+ pub fn new(tag: Tag, session: &'a mut session::Instance) -> Self {
Self { tag, session }
}