mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: misc clippy fixes (#7926)
This commit is contained in:
@ -5,7 +5,6 @@
|
||||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
||||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
||||
)]
|
||||
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
// The `optimism` feature must be enabled to use this crate.
|
||||
#![cfg(feature = "optimism")]
|
||||
|
||||
@ -541,12 +541,11 @@ mod tests {
|
||||
b256, Account, Address, Block, ChainSpecBuilder, Signature, StorageKey, StorageValue,
|
||||
Transaction, TransactionSigned, TxEip1559, TxKind, BASE_MAINNET,
|
||||
};
|
||||
use reth_revm::{database::StateProviderDatabase, L1_BLOCK_CONTRACT};
|
||||
use reth_revm::{
|
||||
database::StateProviderDatabase, test_utils::StateProviderTest, L1_BLOCK_CONTRACT,
|
||||
};
|
||||
use std::{collections::HashMap, str::FromStr};
|
||||
|
||||
use crate::OptimismEvmConfig;
|
||||
use reth_revm::test_utils::StateProviderTest;
|
||||
|
||||
fn create_op_state_provider() -> StateProviderTest {
|
||||
let mut db = StateProviderTest::default();
|
||||
|
||||
|
||||
@ -788,7 +788,7 @@ pub fn dummy_endpoint() -> String {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::client::IpcClientBuilder;
|
||||
use futures::future::{select, Either};
|
||||
use futures::future::select;
|
||||
use jsonrpsee::{
|
||||
core::{
|
||||
client,
|
||||
|
||||
@ -387,7 +387,7 @@ mod tests {
|
||||
use reth_primitives::{
|
||||
stage::StageUnitCheckpoint, BlockBody, SealedBlock, SealedBlockWithSenders, B256,
|
||||
};
|
||||
use reth_provider::{BlockHashReader, BlockWriter, BundleStateWithReceipts, ProviderFactory};
|
||||
use reth_provider::{BlockWriter, BundleStateWithReceipts, ProviderFactory};
|
||||
use reth_trie::{updates::TrieUpdates, HashedPostState};
|
||||
use test_runner::HeadersTestRunner;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user