mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore(clippy): smol clippy fix (#14145)
This commit is contained in:
@ -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()))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user