aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-19 17:40:08 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-19 17:40:08 +0100
commitf5f3aba8d1fb19fe11432e077817779b528363b7 (patch)
treeeb834f87c179942aa64e108e53a4141d891edc39 /src/imap/command
parentc2a518a997fa12f6e82b2a9eb1ba8cd6059fdf41 (diff)
downloadaerogramme-f5f3aba8d1fb19fe11432e077817779b528363b7.tar.gz
aerogramme-f5f3aba8d1fb19fe11432e077817779b528363b7.zip
format code
Diffstat (limited to 'src/imap/command')
-rw-r--r--src/imap/command/authenticated.rs4
-rw-r--r--src/imap/command/selected.rs5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/imap/command/authenticated.rs b/src/imap/command/authenticated.rs
index c5f2d00..60872ae 100644
--- a/src/imap/command/authenticated.rs
+++ b/src/imap/command/authenticated.rs
@@ -235,9 +235,7 @@ impl<'a> AuthenticatedContext<'a> {
.to_string()
.try_into()
.map_err(|_| anyhow!("invalid mailbox name"))?;
- let mut items = vec![FlagNameAttribute::from(Atom::unvalidated(
- "Subscribed",
- ))];
+ let mut items = vec![FlagNameAttribute::from(Atom::unvalidated("Subscribed"))];
if !*is_real {
items.push(FlagNameAttribute::Noselect);
} else {
diff --git a/src/imap/command/selected.rs b/src/imap/command/selected.rs
index 154e28c..73f8aec 100644
--- a/src/imap/command/selected.rs
+++ b/src/imap/command/selected.rs
@@ -226,7 +226,10 @@ impl<'a> SelectedContext<'a> {
))
}
- async fn expunge(self, uid_sequence_set: &Option<SequenceSet>) -> Result<(Response<'static>, flow::Transition)> {
+ async fn expunge(
+ self,
+ uid_sequence_set: &Option<SequenceSet>,
+ ) -> Result<(Response<'static>, flow::Transition)> {
if let Some(failed) = self.fail_read_only() {
return Ok((failed, flow::Transition::None));
}