Unverified Commit 1d7207d3 authored by Vasili Novikov's avatar Vasili Novikov
Browse files

Fix clippy warning

parent 4e8fa8ed
Showing with 1 addition and 1 deletion
+1 -1
......@@ -91,7 +91,7 @@ impl DatabaseKey {
pub fn from(mut key_as_hex_string: String) -> Result<DatabaseKey> {
key_as_hex_string.make_ascii_uppercase();
for c in key_as_hex_string.chars() {
if !((c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')) {
if !(('A'..='Z').contains(&c) || ('0'..='9').contains(&c)) {
key_as_hex_string.zeroize();
return Err(Error {
code: StatusCode::BAD_REQUEST,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment