aboutsummaryrefslogtreecommitdiff
path: root/src/imap/session.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-02-22 17:31:03 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-02-22 17:31:03 +0100
commit9b26e251e3d6d7b850064a2c1ed5bb5870918f1e (patch)
treea90c8adb0a97e7e58c90727d7ad7419a5fa0ccd6 /src/imap/session.rs
parent2adf73dd8e6e76997d4fb67f9f7b3fe065530722 (diff)
downloadaerogramme-9b26e251e3d6d7b850064a2c1ed5bb5870918f1e.tar.gz
aerogramme-9b26e251e3d6d7b850064a2c1ed5bb5870918f1e.zip
formatting
Diffstat (limited to 'src/imap/session.rs')
-rw-r--r--src/imap/session.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/imap/session.rs b/src/imap/session.rs
index 9165574..fa3232a 100644
--- a/src/imap/session.rs
+++ b/src/imap/session.rs
@@ -4,8 +4,8 @@ use crate::imap::flow;
use crate::imap::request::Request;
use crate::imap::response::{Response, ResponseOrIdle};
use crate::login::ArcLoginProvider;
-use anyhow::{anyhow, bail, Result, Context};
-use imap_codec::imap_types::{core::Tag, command::Command};
+use anyhow::{anyhow, bail, Context, Result};
+use imap_codec::imap_types::{command::Command, core::Tag};
//-----
pub struct Instance {
@@ -43,7 +43,11 @@ impl Instance {
.state
.apply(transition)
.context("IDLE transition failed")
- .and_then(|_| self.state.notify().ok_or(anyhow!("IDLE state has no Notify object")));
+ .and_then(|_| {
+ self.state
+ .notify()
+ .ok_or(anyhow!("IDLE state has no Notify object"))
+ });
// Build an appropriate response
match maybe_stop {