mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
New version of clippy has a lot of new lints
Lots of new clippy lints due to toolchain upgrade. Made the Message::error field pub(crate) again, it was the odd one out and it seemed a reasonable way to shut up clippy.
This commit is contained in:
@@ -407,7 +407,7 @@ impl std::str::FromStr for Fingerprint {
|
||||
let hex_repr: String = input
|
||||
.to_uppercase()
|
||||
.chars()
|
||||
.filter(|&c| c >= '0' && c <= '9' || c >= 'A' && c <= 'F')
|
||||
.filter(|&c| ('0'..='9').contains(&c) || ('A'..='F').contains(&c))
|
||||
.collect();
|
||||
let v: Vec<u8> = hex::decode(hex_repr)?;
|
||||
let fp = Fingerprint::new(v)?;
|
||||
|
||||
Reference in New Issue
Block a user