Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: misc clippy #1607

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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