mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
Fix nightly clippy warnings
This commit is contained in:
committed by
link2xt
parent
92b304dee4
commit
332a387c98
@@ -1153,11 +1153,21 @@ pub(crate) fn parse_message_id(ids: &str) -> Result<String> {
|
||||
}
|
||||
|
||||
fn is_known(key: &str) -> bool {
|
||||
match key {
|
||||
"return-path" | "date" | "from" | "sender" | "reply-to" | "to" | "cc" | "bcc"
|
||||
| "message-id" | "in-reply-to" | "references" | "subject" => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(
|
||||
key,
|
||||
"return-path"
|
||||
| "date"
|
||||
| "from"
|
||||
| "sender"
|
||||
| "reply-to"
|
||||
| "to"
|
||||
| "cc"
|
||||
| "bcc"
|
||||
| "message-id"
|
||||
| "in-reply-to"
|
||||
| "references"
|
||||
| "subject"
|
||||
)
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user