refactor: Apply more lints (#17)

Sets lint rules and applies required changes.

Fixes: #16

Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com>
This commit is contained in:
Jagoda Estera Ślązak
2026-01-21 16:28:24 +01:00
committed by GitHub
parent aab39be662
commit 9eb86b23ce
3 changed files with 43 additions and 5 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ pub fn is_securejoin(mail: &mailparse::ParsedMail) -> bool {
return false;
}
let part = &mail.subparts[0];
let Some(part) = &mail.subparts.first() else {
return false;
};
// Part must not be multipart
if !part.subparts.is_empty() {