chore(clippy): smol clippy fix (#14145)

This commit is contained in:
Matthias Seitz
2025-02-01 11:11:57 +01:00
committed by GitHub
parent 7da6d671f6
commit 5c7df17a48

View File

@ -203,7 +203,7 @@ impl BranchEntry {
n * 5 / 8 n * 5 / 8
} }
let decoded_len = base32_no_padding_decoded_len(hash.bytes().len()); let decoded_len = base32_no_padding_decoded_len(hash.len());
if !(12..=32).contains(&decoded_len) || hash.chars().any(|c| c.is_whitespace()) { if !(12..=32).contains(&decoded_len) || hash.chars().any(|c| c.is_whitespace()) {
return Err(ParseDnsEntryError::InvalidChildHash(hash.to_string())) return Err(ParseDnsEntryError::InvalidChildHash(hash.to_string()))
} }