Fix some clippy warnings

This commit is contained in:
Alexander Krotov
2019-11-19 13:27:38 +03:00
committed by Floris Bruynooghe
parent d7c42f3c98
commit 4732085421
6 changed files with 13 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ pub fn dc_encode_header_words(input: impl AsRef<str>) -> String {
fn must_encode(byte: u8) -> bool {
static SPECIALS: &[u8] = b",:!\"#$@[\\]^`{|}~=?_";
SPECIALS.into_iter().any(|b| *b == byte)
SPECIALS.iter().any(|b| *b == byte)
}
fn quote_word(word: &[u8]) -> String {