mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
chore: fix compiler warnings
This commit is contained in:
@@ -318,7 +318,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// respect certificate setting from function parameters
|
// respect certificate setting from function parameters
|
||||||
for mut server in &mut servers {
|
for server in &mut servers {
|
||||||
let certificate_checks = match server.protocol {
|
let certificate_checks = match server.protocol {
|
||||||
Protocol::Imap => param.imap.certificate_checks,
|
Protocol::Imap => param.imap.certificate_checks,
|
||||||
Protocol::Smtp => param.smtp.certificate_checks,
|
Protocol::Smtp => param.smtp.certificate_checks,
|
||||||
|
|||||||
@@ -643,7 +643,7 @@ impl MimeMessage {
|
|||||||
.parts
|
.parts
|
||||||
.iter_mut()
|
.iter_mut()
|
||||||
.find(|part| !part.msg.is_empty() && !part.is_reaction);
|
.find(|part| !part.msg.is_empty() && !part.is_reaction);
|
||||||
if let Some(mut part) = part_with_text {
|
if let Some(part) = part_with_text {
|
||||||
part.msg = format!("{} – {}", subject, part.msg);
|
part.msg = format!("{} – {}", subject, part.msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user