Fix nightly clippy warnings

This commit is contained in:
Alexander Krotov
2020-09-19 16:21:34 +03:00
committed by link2xt
parent 92b304dee4
commit 332a387c98
11 changed files with 37 additions and 41 deletions

View File

@@ -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)]