Skip to content

Commit 0422f7a

Browse files
committed
Run cargo clippy
1 parent b8a3ada commit 0422f7a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

aggregation_mode/src/backend/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl Config {
5252
last_processed_block: u64,
5353
) -> Result<(), Box<dyn std::error::Error>> {
5454
let last_processed_block_struct = LastProcessedBlock {
55-
last_processed_block: last_processed_block,
55+
last_processed_block,
5656
};
5757

5858
let mut file = OpenOptions::new()

aggregation_mode/src/backend/fetcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl ProofsFetcher {
4242
Self {
4343
rpc_provider,
4444
aligned_service_manager,
45-
last_processed_block: last_processed_block,
45+
last_processed_block,
4646
}
4747
}
4848

aggregation_mode/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ async fn main() {
2323
// load config
2424
let config_file_path = read_config_filepath_from_args();
2525
tracing::info!("Loading config from {}...", config_file_path);
26-
let mut config = Config::from_file(&config_file_path).expect("Config is valid");
26+
let config = Config::from_file(&config_file_path).expect("Config is valid");
2727
tracing::info!("Config loaded");
2828

2929
let mut proof_aggregator = ProofAggregator::new(&config);
30-
proof_aggregator.start(&mut config).await;
30+
proof_aggregator.start(&config).await;
3131
}

0 commit comments

Comments
 (0)