Skip to content

Commit e2e747c

Browse files
committed
delete unneeded variable
1 parent 2a49a83 commit e2e747c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/parsers/message.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,7 @@ impl MessageParser {
339339
(Cow::Borrowed(bytes), None) => String::from_utf8_lossy(bytes),
340340
};
341341

342-
let is_html = mime_type == MimeType::TextHtml;
343-
344-
if is_html {
342+
if mime_type == MimeType::TextHtml {
345343
PartType::Html(text)
346344
} else {
347345
PartType::Text(text)

0 commit comments

Comments
 (0)