Fix clippy lints

This commit is contained in:
Martin Algesten
2021-08-23 20:29:36 +02:00
parent 6797258e9d
commit 526eb7b9e0
4 changed files with 6 additions and 8 deletions

View File

@@ -81,7 +81,7 @@ impl<'a> Payload<'a> {
let encoding = Encoding::for_label(_charset.as_bytes())
.or_else(|| Encoding::for_label(DEFAULT_CHARACTER_SET.as_bytes()))
.unwrap();
encoding.encode(&text).0
encoding.encode(text).0
};
#[cfg(not(feature = "charset"))]
let bytes = text.as_bytes();