From 18da1321d3dad76358c96ce1cc0cd7f0914f30b2 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 2 Nov 2024 09:30:18 +0100 Subject: [PATCH] chore: misc clippy (#1607) --- crates/consensus/src/receipt/receipts.rs | 1 - crates/consensus/src/transaction/envelope.rs | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/consensus/src/receipt/receipts.rs b/crates/consensus/src/receipt/receipts.rs index 09eb0893456..4a3b83fdc9b 100644 --- a/crates/consensus/src/receipt/receipts.rs +++ b/crates/consensus/src/receipt/receipts.rs @@ -295,7 +295,6 @@ where #[cfg(test)] mod test { - use super::*; #[cfg(feature = "serde")] #[test] diff --git a/crates/consensus/src/transaction/envelope.rs b/crates/consensus/src/transaction/envelope.rs index c9ba38ca4c8..75f416416aa 100644 --- a/crates/consensus/src/transaction/envelope.rs +++ b/crates/consensus/src/transaction/envelope.rs @@ -608,6 +608,7 @@ mod serde_from { mod tests { use super::*; use crate::transaction::SignableTransaction; + use alloc::vec::Vec; use alloy_eips::{ eip2930::{AccessList, AccessListItem}, eip4844::BlobTransactionSidecar, @@ -616,12 +617,8 @@ mod tests { #[allow(unused_imports)] use alloy_primitives::{b256, Bytes, TxKind}; use alloy_primitives::{hex, Address, Parity, Signature, U256}; - use arbitrary::Arbitrary; use std::{fs, path::PathBuf, str::FromStr, vec}; - #[cfg(not(feature = "std"))] - use std::vec::Vec; - #[test] #[cfg(feature = "k256")] // Test vector from https://etherscan.io/tx/0xce4dc6d7a7549a98ee3b071b67e970879ff51b5b95d1c340bacd80fa1e1aab31 @@ -1156,6 +1153,7 @@ mod tests { #[test] #[cfg(feature = "k256")] fn test_arbitrary_envelope() { + use arbitrary::Arbitrary; let mut unstructured = arbitrary::Unstructured::new(b"arbitrary tx envelope"); let tx = TxEnvelope::arbitrary(&mut unstructured).unwrap();