diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-19 17:40:08 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-19 17:40:08 +0100 |
commit | f5f3aba8d1fb19fe11432e077817779b528363b7 (patch) | |
tree | eb834f87c179942aa64e108e53a4141d891edc39 /src/mail/user.rs | |
parent | c2a518a997fa12f6e82b2a9eb1ba8cd6059fdf41 (diff) | |
download | aerogramme-f5f3aba8d1fb19fe11432e077817779b528363b7.tar.gz aerogramme-f5f3aba8d1fb19fe11432e077817779b528363b7.zip |
format code
Diffstat (limited to 'src/mail/user.rs')
-rw-r--r-- | src/mail/user.rs | 6 |
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 |