aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mailbox_view.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-12 15:31:29 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-12 15:31:29 +0200
commit5d6e4f73322b26038e76e6f915c6c79c5f03566e (patch)
treefe052de771cb5fb6f28cbcba03c2c63993063c70 /src/imap/mailbox_view.rs
parent7b888ed8cfecc30468c4a33e1f0a3e4bbced5df4 (diff)
downloadaerogramme-5d6e4f73322b26038e76e6f915c6c79c5f03566e.tar.gz
aerogramme-5d6e4f73322b26038e76e6f915c6c79c5f03566e.zip
cleanup
Diffstat (limited to 'src/imap/mailbox_view.rs')
-rw-r--r--src/imap/mailbox_view.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs
index b8fca53..a73bdf7 100644
--- a/src/imap/mailbox_view.rs
+++ b/src/imap/mailbox_view.rs
@@ -1,6 +1,5 @@
-use std::borrow::{Borrow, Cow};
-use std::collections::HashMap;
-use std::io::{BufRead, Cursor};
+use std::borrow::Cow;
+
use std::num::NonZeroU32;
use std::sync::Arc;
@@ -10,7 +9,7 @@ use chrono::{Offset, TimeZone, Utc};
use futures::stream::{FuturesOrdered, StreamExt};
use imap_codec::types::address::Address;
use imap_codec::types::body::{BasicFields, Body as FetchBody, BodyStructure, SpecificFields};
-use imap_codec::types::core::{Atom, IString, NString, NonZeroBytes};
+use imap_codec::types::core::{Atom, IString, NString};
use imap_codec::types::datetime::MyDateTime;
use imap_codec::types::envelope::Envelope;
use imap_codec::types::fetch_attributes::{FetchAttribute, MacroOrFetchAttributes};
@@ -287,9 +286,9 @@ impl MailboxView {
build_imap_email_struct(&parsed, &parsed.structure)?,
)),
FetchAttribute::BodyExt {
- section,
- partial,
- peek,
+ section: _,
+ partial: _,
+ peek: _,
} => {
// @TODO This is a stub
let is = IString::try_from("test").unwrap();
@@ -579,7 +578,7 @@ fn build_imap_email_struct<'a>(
})
}
MessagePart::Binary(bp) | MessagePart::InlineBinary(bp) => {
- let (_, mut basic) = headers_to_basic_fields(bp)?;
+ let (_, basic) = headers_to_basic_fields(bp)?;
let ct = bp
.get_content_type()