From a1412e1ef905d1839eaf1fab37b452b4076573b9 Mon Sep 17 00:00:00 2001 From: ec2 Date: Wed, 8 Nov 2023 21:22:11 +0000 Subject: [PATCH] clippy --- preprocessor/src/rotation.rs | 5 +++-- preprocessor/src/sync.rs | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/preprocessor/src/rotation.rs b/preprocessor/src/rotation.rs index c4a9adfb..deda8ce0 100644 --- a/preprocessor/src/rotation.rs +++ b/preprocessor/src/rotation.rs @@ -15,7 +15,7 @@ use crate::{get_block_header, get_light_client_update_at_period}; pub async fn fetch_rotation_args( client: &Client, ) -> eyre::Result> { - let block = get_block_header(&client, BlockId::Head).await?; + let block = get_block_header(client, BlockId::Head).await?; let slot = block.slot; let period = slot / (32 * 256); debug!( @@ -24,7 +24,7 @@ pub async fn fetch_rotation_args( ); let mut update: LightClientUpdateCapella<512, 55, 5, 105, 6, 256, 32> = - get_light_client_update_at_period(&client, period).await?; + get_light_client_update_at_period(client, period).await?; let pubkeys_compressed = update .next_sync_committee @@ -113,6 +113,7 @@ mod tests { committee_update_circuit::CommitteeUpdateCircuit, util::{gen_srs, AppCircuit, Eth2ConfigPinning, Halo2ConfigPinning}, }; + use reqwest::Url; use snark_verifier_sdk::CircuitExt; #[tokio::test] diff --git a/preprocessor/src/sync.rs b/preprocessor/src/sync.rs index 7db81507..26b8eed4 100644 --- a/preprocessor/src/sync.rs +++ b/preprocessor/src/sync.rs @@ -27,8 +27,8 @@ where { S::FINALIZED_HEADER_DEPTH }, { S::BYTES_PER_LOGS_BLOOM }, { S::MAX_EXTRA_DATA_BYTES }, - > = get_light_client_finality_update(&client).await?; - step_args_from_finality_update(&client, finality_update).await + > = get_light_client_finality_update(client).await?; + step_args_from_finality_update(client, finality_update).await } pub async fn step_args_from_finality_update( @@ -45,7 +45,7 @@ pub async fn step_args_from_finality_update( .await .unwrap(); let bootstrap: LightClientBootstrap<512, 5, 256, 32> = - get_light_client_bootstrap(&client, block_root).await?; + get_light_client_bootstrap(client, block_root).await?; let pubkeys_uncompressed = bootstrap .current_sync_committee