Skip to content

Commit

Permalink
chore: misc clippy (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 2, 2024
1 parent 1bfa38c commit 18da132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion crates/consensus/src/receipt/receipts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ where

#[cfg(test)]
mod test {
use super::*;

#[cfg(feature = "serde")]
#[test]
Expand Down
6 changes: 2 additions & 4 deletions crates/consensus/src/transaction/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 18da132

Please sign in to comment.