Skip to content

Commit

Permalink
lint / cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Oct 20, 2024
1 parent d96a581 commit 94e7b29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion zero/src/bin/leader/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub enum WorkerRunMode {
Default,
}

#[allow(clippy::large_enum_variant)]
#[derive(Subcommand)]
pub(crate) enum Command {
/// Deletes all the previously cached circuits.
Expand All @@ -70,7 +71,7 @@ pub(crate) enum Command {
/// The end of the block range to prove (inclusive).
#[arg(long, short = 'e')]
end_block: Option<BlockId>,
/// The checkpoint block number.
/// The checkpoint block.
#[arg(short, long, default_value = "0")]
checkpoint_block: BlockId,
/// The previous proof output.
Expand Down
3 changes: 0 additions & 3 deletions zero/src/bin/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ struct FetchParams {
pub start_block: u64,
pub end_block: u64,
pub checkpoint_block_number: Option<u64>,
pub rpc_type: RpcType,
}

#[derive(Args, Clone, Debug)]
Expand Down Expand Up @@ -127,7 +126,6 @@ impl Cli {
start_block,
end_block,
checkpoint_block_number,
rpc_type: self.config.rpc_type,
};

let block_prover_inputs =
Expand All @@ -153,7 +151,6 @@ impl Cli {
start_block: block_number,
end_block: block_number,
checkpoint_block_number: None,
rpc_type: self.config.rpc_type,
};

let block_prover_inputs =
Expand Down
6 changes: 2 additions & 4 deletions zero/src/block_interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ use std::pin::Pin;
use std::sync::Arc;

use alloy::rpc::types::eth::BlockId;
use alloy::rpc::types::{Block, BlockTransactionsKind};
use alloy::{providers::Provider, transports::Transport};
use anyhow::{anyhow, Result};
use async_stream::try_stream;
use futures::Stream;
use tracing::info;

use crate::provider::{BlockProvider, CachedProvider};
use crate::provider::BlockProvider;

/// The async stream of block numbers.
/// The second bool flag indicates if the element is last in the interval.
Expand Down Expand Up @@ -179,7 +177,7 @@ impl std::fmt::Display for BlockInterval {
#[cfg(test)]
mod test {
use alloy::primitives::B256;
use alloy::rpc::types::{Header, Transaction};
use alloy::rpc::types::{Block, Header, Transaction};
use mockall::predicate::*;

use super::*;
Expand Down

0 comments on commit 94e7b29

Please sign in to comment.