diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-18 18:03:21 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-18 18:03:21 +0100 |
commit | 2c5adc8f166c6117ece353376b9071f5e30857b1 (patch) | |
tree | 1590c1277342734ee6f06b1a388c0fc63ecd8acf /src/imap/capability.rs | |
parent | 43b668531f060a2c0f950da96b363b2ea7cf4e06 (diff) | |
download | aerogramme-2c5adc8f166c6117ece353376b9071f5e30857b1.tar.gz aerogramme-2c5adc8f166c6117ece353376b9071f5e30857b1.zip |
reformat code
Diffstat (limited to 'src/imap/capability.rs')
-rw-r--r-- | src/imap/capability.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/imap/capability.rs b/src/imap/capability.rs index 6533ccb..f60c01f 100644 --- a/src/imap/capability.rs +++ b/src/imap/capability.rs @@ -1,4 +1,4 @@ -use imap_codec::imap_types::command::{FetchModifier, StoreModifier, SelectExamineModifier}; +use imap_codec::imap_types::command::{FetchModifier, SelectExamineModifier, StoreModifier}; use imap_codec::imap_types::core::NonEmptyVec; use imap_codec::imap_types::extensions::enable::{CapabilityEnable, Utf8Kind}; use imap_codec::imap_types::response::Capability; @@ -72,7 +72,6 @@ impl ClientStatus { } } - pub struct ClientCapability { pub condstore: ClientStatus, pub utf8kind: Option<Utf8Kind>, @@ -100,13 +99,19 @@ impl ClientCapability { } pub fn fetch_modifiers_enable(&mut self, mods: &[FetchModifier]) { - if mods.iter().any(|x| matches!(x, FetchModifier::ChangedSince(..))) { + if mods + .iter() + .any(|x| matches!(x, FetchModifier::ChangedSince(..))) + { self.enable_condstore() } } pub fn store_modifiers_enable(&mut self, mods: &[StoreModifier]) { - if mods.iter().any(|x| matches!(x, StoreModifier::UnchangedSince(..))) { + if mods + .iter() + .any(|x| matches!(x, StoreModifier::UnchangedSince(..))) + { self.enable_condstore() } } |