From f8431ba38bde8567ce2e61f15c5ae007323b50b8 Mon Sep 17 00:00:00 2001 From: 0xKitsune <0xKitsune@protonmail.com> Date: Wed, 22 Nov 2023 00:01:49 -0500 Subject: [PATCH] cargo clippy, cargo sort --- Cargo.toml | 1 - benches/tree_data.rs | 1 + crates/ethers-throttle/src/lib.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cde43e16..6134f35d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,6 @@ path = "bin/tree_availability_service.rs" name = "state-bridge-service" path = "bin/state_bridge_service.rs" - [[bench]] name = "tree_data" harness = false diff --git a/benches/tree_data.rs b/benches/tree_data.rs index 129fa230..149389cb 100644 --- a/benches/tree_data.rs +++ b/benches/tree_data.rs @@ -24,6 +24,7 @@ fn generate_random_identities(num_identities: usize) -> Vec { identities } + async fn setup_tree_data() -> TreeData { let tree = PoseidonTree::::new(TREE_DEPTH, Hash::ZERO); let tree_data = TreeData::new(tree, TREE_HISTORY_SIZE); diff --git a/crates/ethers-throttle/src/lib.rs b/crates/ethers-throttle/src/lib.rs index f67ae0af..8e5f5d9c 100644 --- a/crates/ethers-throttle/src/lib.rs +++ b/crates/ethers-throttle/src/lib.rs @@ -2,7 +2,7 @@ use std::num::NonZeroU32; use std::sync::Arc; use async_trait::async_trait; -use ethers::providers::{JsonRpcClient, ProviderError}; +use ethers::providers::JsonRpcClient; use governor::clock::{QuantaClock, QuantaInstant}; use governor::middleware::NoOpMiddleware; use governor::state::{InMemoryState, NotKeyed};