diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-14 10:19:24 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-14 10:19:24 +0200 |
commit | 9c95b261e00299933368a18ce56e238f50874cc4 (patch) | |
tree | 0db3baa88c7a22e61afe393a370130e7bdac11b6 /src/service.rs | |
parent | 12b379e7c3f832be5fd650ce3abc33b7d0b9fed8 (diff) | |
download | aerogramme-9c95b261e00299933368a18ce56e238f50874cc4.tar.gz aerogramme-9c95b261e00299933368a18ce56e238f50874cc4.zip |
cargo fmt + WIP uid index improvement
Diffstat (limited to 'src/service.rs')
-rw-r--r-- | src/service.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/service.rs b/src/service.rs index 35c753b..f99ba7a 100644 --- a/src/service.rs +++ b/src/service.rs @@ -2,9 +2,9 @@ use std::sync::Arc; use std::task::{Context, Poll}; use anyhow::Result; -use boitalettres::server::accept::addr::AddrStream; use boitalettres::errors::Error as BalError; use boitalettres::proto::{Request, Response}; +use boitalettres::server::accept::addr::AddrStream; use futures::future::BoxFuture; use futures::future::FutureExt; use tower::Service; @@ -41,7 +41,9 @@ pub struct Connection { } impl Connection { pub fn new(mailstore: Arc<Mailstore>) -> Self { - Self { session: session::Manager::new(mailstore) } + Self { + session: session::Manager::new(mailstore), + } } } impl Service<Request> for Connection { @@ -58,6 +60,3 @@ impl Service<Request> for Connection { self.session.process(req) } } - - - |