diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-22 17:26:52 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-22 17:26:52 +0200 |
commit | cea27474f9dfed289be4e7be017913d7165342f3 (patch) | |
tree | 6e971a12acfe82a2dca9d39d2cd36bafe3e59c6d /src/imap/mod.rs | |
parent | ac974184def76fefba6c36c5c9e0ff0298f860ff (diff) | |
download | aerogramme-cea27474f9dfed289be4e7be017913d7165342f3.tar.gz aerogramme-cea27474f9dfed289be4e7be017913d7165342f3.zip |
cargo fmt
Diffstat (limited to 'src/imap/mod.rs')
-rw-r--r-- | src/imap/mod.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/imap/mod.rs b/src/imap/mod.rs index 7cc4f68..4b44140 100644 --- a/src/imap/mod.rs +++ b/src/imap/mod.rs @@ -1,6 +1,6 @@ -mod session; -mod flow; mod command; +mod flow; +mod session; use std::task::{Context, Poll}; @@ -15,16 +15,12 @@ use futures::future::FutureExt; use tokio::sync::watch; use tower::Service; -use crate::login::ArcLoginProvider; use crate::config::ImapConfig; +use crate::login::ArcLoginProvider; /// Server is a thin wrapper to register our Services in BàL pub struct Server(ImapServer<AddrIncoming, Instance>); -pub async fn new( - config: ImapConfig, - login: ArcLoginProvider, -) -> Result<Server> { - +pub async fn new(config: ImapConfig, login: ArcLoginProvider) -> Result<Server> { //@FIXME add a configuration parameter let incoming = AddrIncoming::new(config.bind_addr).await?; tracing::info!("IMAP activated, will listen on {:#}", incoming.local_addr); |