Skip to content

Commit

Permalink
Fix deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sftse committed Dec 2, 2024
1 parent 747f31a commit a9551aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ pub struct Message<'x> {
pub attachments: Vec<MessagePartId>,

#[cfg_attr(feature = "serde_support", serde(default))]
#[cfg_attr(feature = "serde_support", serde(borrow))]
pub parts: Vec<MessagePart<'x>>,

#[cfg_attr(feature = "serde_support", serde(skip))]
Expand All @@ -295,7 +294,6 @@ pub struct MessagePart<'x> {
pub headers: Vec<Header<'x>>,
pub is_encoding_problem: bool,
#[cfg_attr(feature = "serde_support", serde(default))]
#[cfg_attr(feature = "serde_support", serde(borrow))]
pub body: PartType<'x>,
#[cfg_attr(feature = "serde_support", serde(skip))]
pub encoding: Encoding,
Expand Down Expand Up @@ -345,11 +343,9 @@ pub enum PartType<'x> {
Html(Cow<'x, str>),

/// Any other part type that is not text.
#[cfg_attr(feature = "serde_support", serde(borrow))]
Binary(Cow<'x, [u8]>),

/// Any inline binary data that.
#[cfg_attr(feature = "serde_support", serde(borrow))]
InlineBinary(Cow<'x, [u8]>),

/// Nested RFC5322 message.
Expand Down

0 comments on commit a9551aa

Please sign in to comment.