aboutsummaryrefslogtreecommitdiff
path: root/src/imap/capability.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap/capability.rs')
-rw-r--r--src/imap/capability.rs9
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)]