chore: fix compiler warnings

This commit is contained in:
link2xt
2023-07-21 09:33:59 +00:00
parent 0a50bad555
commit bc73c16df7
2 changed files with 2 additions and 2 deletions

View File

@@ -318,7 +318,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> {
}
// respect certificate setting from function parameters
for mut server in &mut servers {
for server in &mut servers {
let certificate_checks = match server.protocol {
Protocol::Imap => param.imap.certificate_checks,
Protocol::Smtp => param.smtp.certificate_checks,

View File

@@ -643,7 +643,7 @@ impl MimeMessage {
.parts
.iter_mut()
.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);
}
}