Fix clippy lints

This commit is contained in:
Paul Hauner
2022-08-24 17:46:46 +10:00
parent d20e65a271
commit 43b16b138d
5 changed files with 22 additions and 24 deletions

View File

@@ -80,8 +80,7 @@ impl ValidatorSpecification {
if response
.data
.iter()
.find(|validator| validator.validating_pubkey == voting_public_key)
.is_some()
.any(|validator| validator.validating_pubkey == voting_public_key)
{
if ignore_duplicates {
eprintln!(
@@ -278,7 +277,7 @@ mod bytes_4_without_0x_prefix {
S: serde::Serializer,
{
let hex_string = &hex::encode(&bytes);
serializer.serialize_str(&hex_string)
serializer.serialize_str(hex_string)
}
pub fn deserialize<'de, D>(deserializer: D) -> Result<[u8; BYTES_LEN], D::Error>