From 44145b70749ccd1c5e701d08f9450a90b3abc315 Mon Sep 17 00:00:00 2001 From: lightsing Date: Tue, 26 Mar 2024 17:12:42 +0800 Subject: [PATCH] fmt && clippy --- external-tracer/src/lib.rs | 2 +- testool/src/statetest/executor.rs | 6 +----- testool/src/statetest/json.rs | 2 -- testool/src/statetest/yaml.rs | 2 -- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/external-tracer/src/lib.rs b/external-tracer/src/lib.rs index ad3db51021..f4ad8035ee 100644 --- a/external-tracer/src/lib.rs +++ b/external-tracer/src/lib.rs @@ -5,7 +5,7 @@ use eth_types::{ Address, Error, GethExecTrace, Word, }; use serde::Serialize; -use std::collections::{BTreeMap, HashMap}; +use std::collections::BTreeMap; /// Configuration structure for `geth_utils::trace` #[derive(Debug, Default, Clone, Serialize)] diff --git a/testool/src/statetest/executor.rs b/testool/src/statetest/executor.rs index 323d1a4038..0eff2d1452 100644 --- a/testool/src/statetest/executor.rs +++ b/testool/src/statetest/executor.rs @@ -5,11 +5,7 @@ use bus_mapping::{ mock::BlockData, }; use eth_types::{geth_types, Address, Bytes, Error, GethExecTrace, U256, U64}; -use ethers_core::{ - k256::ecdsa::SigningKey, - types::{transaction::eip2718::TypedTransaction, TransactionRequest, Withdrawal}, - utils::keccak256, -}; +use ethers_core::{k256::ecdsa::SigningKey, types::Withdrawal, utils::keccak256}; use ethers_signers::{LocalWallet, Signer}; use external_tracer::TraceConfig; use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr}; diff --git a/testool/src/statetest/json.rs b/testool/src/statetest/json.rs index ddc2c2e1d1..fc357adb9c 100644 --- a/testool/src/statetest/json.rs +++ b/testool/src/statetest/json.rs @@ -9,8 +9,6 @@ use ethers_core::{k256::ecdsa::SigningKey, utils::secret_key_to_address}; use serde::Deserialize; use std::collections::{BTreeMap, HashMap}; -use serde_json::value::Value; - fn default_block_base_fee() -> String { DEFAULT_BASE_FEE.to_string() } diff --git a/testool/src/statetest/yaml.rs b/testool/src/statetest/yaml.rs index aa6fb8e241..fdba646891 100644 --- a/testool/src/statetest/yaml.rs +++ b/testool/src/statetest/yaml.rs @@ -13,8 +13,6 @@ use std::{ }; use yaml_rust::Yaml; -type Label = String; - #[derive(Debug, Clone)] enum Ref { Any,