mirror of
https://github.com/chatmail/relay.git
synced 2026-08-26 10:03:13 +00:00
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:
committed by
GitHub
parent
aab39be662
commit
9eb86b23ce
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user