From 38e6140a7c0d0ff7550bf8e70620bb691bea5fc4 Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Thu, 17 Jul 2025 14:41:48 +0300 Subject: [PATCH] Remove unneeded use of two `HashMap`s --- crates/core/src/common.rs | 2 -- crates/core/src/driver/mod.rs | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/core/src/common.rs b/crates/core/src/common.rs index 713458c..4bf8a24 100644 --- a/crates/core/src/common.rs +++ b/crates/core/src/common.rs @@ -111,8 +111,6 @@ pub struct FilesWithExtensionIterator { /// The set of files matching the allowed extensions that were found. If there are entries in /// this vector then they will be returned when the [`Iterator::next`] method is called. If not /// then we visit one of the next directories to visit. - /// - /// [`Iterator`]: std::iter::Iterator files_matching_allowed_extensions: Vec, } diff --git a/crates/core/src/driver/mod.rs b/crates/core/src/driver/mod.rs index 0603438..a3b4f15 100644 --- a/crates/core/src/driver/mod.rs +++ b/crates/core/src/driver/mod.rs @@ -5,7 +5,7 @@ use alloy::network::TransactionBuilder; use alloy::rpc::types::TransactionReceipt; use alloy::rpc::types::trace::geth::GethTrace; use alloy::{ - primitives::{Address, map::HashMap}, + primitives::Address, rpc::types::{ TransactionRequest, trace::geth::{AccountState, DiffMode}, @@ -18,7 +18,7 @@ use revive_dt_node_interaction::EthereumNode; use revive_dt_report::reporter::{CompilationTask, Report, Span}; use revive_solc_json_interface::SolcStandardJsonOutput; use serde_json::Value; -use std::collections::HashMap as StdHashMap; +use std::collections::HashMap; use tracing::Level; use crate::Platform; @@ -33,8 +33,8 @@ pub struct State<'a, T: Platform> { config: &'a Arguments, span: Span, contracts: Contracts, - deployed_contracts: StdHashMap, - deployed_abis: StdHashMap, + deployed_contracts: HashMap, + deployed_abis: HashMap, } impl<'a, T> State<'a, T>