Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sftse committed Nov 15, 2024
1 parent 3ab268b commit 46faeae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/parsers/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,10 @@ impl MessageParser {
} else {
PartType::Text(text)
}
} else if !is_inline {
PartType::Binary(bytes)
} else {
if !is_inline {
PartType::Binary(bytes)
} else {
PartType::InlineBinary(bytes)
}
PartType::InlineBinary(bytes)
}
} else {
message.attachments.push(message.parts.len());
Expand Down

0 comments on commit 46faeae

Please sign in to comment.