Skip to content

Commit

Permalink
fix: clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-londhe committed Jan 2, 2025
1 parent b76ce97 commit 6e2a257
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions benches/benches/helper_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use std::sync::Arc;

use allocator as _;
use bls::traits::CachedPublicKey as _;
use criterion::{BatchSize, Criterion, Throughput};
use easy_ext::ext;
use eth2_cache_utils::{goerli, mainnet, medalla, LazyBeaconState};
Expand Down
1 change: 1 addition & 0 deletions doppelganger_protection/src/doppelganger_protection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ impl LivenessChecker {

#[cfg(test)]
mod tests {
use bls::traits::CachedPublicKey as _;
use types::{config::Config, preset::Minimal};

use super::*;
Expand Down
5 changes: 4 additions & 1 deletion helper_functions/src/predicates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,10 @@ mod spec_tests {

#[cfg(test)]
mod extra_tests {
use bls::{SecretKey, SecretKeyBytes};
use bls::{
traits::{SecretKey as _, Signature as _},
SecretKey, SecretKeyBytes,
};
use std_ext::CopyExt as _;
use tap::Conv as _;
use types::{
Expand Down
6 changes: 4 additions & 2 deletions helper_functions/src/spec_tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use bls::{
error::Error,
traits::{PublicKey as _, SecretKey as _, Signature as _},
AggregatePublicKey, AggregatePublicKeyBytes, AggregateSignature, AggregateSignatureBytes,
Error, PublicKey, PublicKeyBytes, SecretKey, SecretKeyBytes, Signature, SignatureBytes,
PublicKey, PublicKeyBytes, SecretKey, SecretKeyBytes, Signature, SignatureBytes,
};
use serde::Deserialize;
use spec_test_utils::Case;
Expand Down Expand Up @@ -218,7 +220,7 @@ fn verify(case: Case) {
let run = || -> Result<_, Error> {
let public_key = PublicKey::try_from(pubkey)?;
let signature = Signature::try_from(signature)?;
Ok(signature.verify(message, public_key))
Ok(signature.verify(message, &public_key))
};

if output {
Expand Down
2 changes: 1 addition & 1 deletion http_api/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Arc;
use anyhow::Result;
use attestation_verifier::AttestationVerifier;
use block_producer::{BlockProducer, Options as BlockProducerOptions};
use bls::{PublicKeyBytes, SecretKey};
use bls::{traits::SecretKey as _, PublicKeyBytes, SecretKey};
use clock::Tick;
use database::Database;
use dedicated_executor::DedicatedExecutor;
Expand Down
1 change: 1 addition & 0 deletions validator/src/own_beacon_committee_members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ fn slot_index_from_slot(slot: Slot) -> usize {

#[cfg(test)]
mod tests {
use bls::traits::SecretKey as _;
use reqwest::Client;
use signer::{KeyOrigin, Web3SignerConfig};
use types::preset::Minimal;
Expand Down

0 comments on commit 6e2a257

Please sign in to comment.