aboutsummaryrefslogtreecommitdiff
path: root/src/mail/user.rs
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/mail/user.rs
parentc2a518a997fa12f6e82b2a9eb1ba8cd6059fdf41 (diff)
downloadaerogramme-f5f3aba8d1fb19fe11432e077817779b528363b7.tar.gz
aerogramme-f5f3aba8d1fb19fe11432e077817779b528363b7.zip
format code
Diffstat (limited to 'src/mail/user.rs')
-rw-r--r--src/mail/user.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mail/user.rs b/src/mail/user.rs
index 4767a93..ad05615 100644
--- a/src/mail/user.rs
+++ b/src/mail/user.rs
@@ -269,10 +269,12 @@ impl User {
}
};
- let is_default_mbx_missing = [ DRAFTS, ARCHIVE, SENT, TRASH ]
+ let is_default_mbx_missing = [DRAFTS, ARCHIVE, SENT, TRASH]
.iter()
.map(|mbx| list.create_mailbox(mbx))
- .fold(false, |acc, r| acc || matches!(r, CreatedMailbox::Created(..)));
+ .fold(false, |acc, r| {
+ acc || matches!(r, CreatedMailbox::Created(..))
+ });
let is_inbox_missing = self.ensure_inbox_exists(&mut list, &row).await?;
if is_default_mbx_missing && !is_inbox_missing {
// It's the only case where we created some mailboxes and not saved them