diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-03 20:53:25 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-03 20:53:25 +0100 |
commit | 8180baae0084faf76d49e6e03f8405487723c46f (patch) | |
tree | a48e372bacb5399b7a278474025daeb66efcb755 /src/imap/capability.rs | |
parent | a6a0e1994db2b43f559e5c2e8ae5c58342e5136f (diff) | |
download | aerogramme-8180baae0084faf76d49e6e03f8405487723c46f.tar.gz aerogramme-8180baae0084faf76d49e6e03f8405487723c46f.zip |
format code
Diffstat (limited to 'src/imap/capability.rs')
-rw-r--r-- | src/imap/capability.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/imap/capability.rs b/src/imap/capability.rs index 3929558..9a641a7 100644 --- a/src/imap/capability.rs +++ b/src/imap/capability.rs @@ -1,6 +1,6 @@ use imap_codec::imap_types::core::NonEmptyVec; -use imap_codec::imap_types::response::Capability; use imap_codec::imap_types::extensions::enable::{CapabilityEnable, Utf8Kind}; +use imap_codec::imap_types::response::Capability; use std::collections::HashSet; fn capability_unselect() -> Capability<'static> { @@ -32,7 +32,12 @@ impl Default for ServerCapability { impl ServerCapability { pub fn to_vec(&self) -> NonEmptyVec<Capability<'static>> { - self.0.iter().map(|v| v.clone()).collect::<Vec<_>>().try_into().unwrap() + self.0 + .iter() + .map(|v| v.clone()) + .collect::<Vec<_>>() + .try_into() + .unwrap() } #[allow(dead_code)] |