mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
make clippy happy and avoid unneeded evaluation
This commit is contained in:
@@ -138,9 +138,11 @@ impl HtmlMsgParser {
|
|||||||
}
|
}
|
||||||
MimeMultipartType::Single => {
|
MimeMultipartType::Single => {
|
||||||
let mimetype = mail.ctype.mimetype.parse::<Mime>()?;
|
let mimetype = mail.ctype.mimetype.parse::<Mime>()?;
|
||||||
if mimetype == mime::TEXT_HTML && self.html.is_empty() {
|
if mimetype == mime::TEXT_HTML {
|
||||||
if let Ok(decoded_data) = mail.get_body() {
|
if self.html.is_empty() {
|
||||||
self.html = decoded_data;
|
if let Ok(decoded_data) = mail.get_body() {
|
||||||
|
self.html = decoded_data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if mimetype == mime::TEXT_PLAIN && self.plain.is_none() {
|
} else if mimetype == mime::TEXT_PLAIN && self.plain.is_none() {
|
||||||
if let Ok(decoded_data) = mail.get_body() {
|
if let Ok(decoded_data) = mail.get_body() {
|
||||||
|
|||||||
Reference in New Issue
Block a user