Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Aug 16, 2023
1 parent dc4e22b commit cd0bb61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
27 changes: 2 additions & 25 deletions crates/net/eth-wire/src/types/transactions.rs
Original file line number Diff line number Diff line change
@@ -1,35 +1,12 @@
//! Implements the `GetPooledTransactions` and `PooledTransactions` message types.
use std::ops::Deref;

use bytes::{Buf, Bytes};
use reth_codecs::derive_arbitrary;
use reth_primitives::{
kzg::{self, KzgCommitment, KzgProof, KzgSettings},
kzg_to_versioned_hash, BlobTransactionSidecar, PooledTransactionsElement, Signature,
Transaction, TransactionSigned, TransactionSignedNoHash, TxEip4844, TxType, EIP4844_TX_TYPE_ID,
H256,
};
use reth_rlp::{
Decodable, DecodeError, Encodable, Header, RlpDecodableWrapper, RlpEncodableWrapper,
EMPTY_LIST_CODE,
};
use reth_primitives::{PooledTransactionsElement, TransactionSigned, H256};
use reth_rlp::{RlpDecodableWrapper, RlpEncodableWrapper};

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

#[cfg(any(test, feature = "arbitrary"))]
use proptest::{
arbitrary::{any as proptest_any, ParamsFor},
collection::vec as proptest_vec,
strategy::{BoxedStrategy, Strategy},
};

#[cfg(any(test, feature = "arbitrary"))]
use reth_primitives::{
constants::eip4844::{FIELD_ELEMENTS_PER_BLOB, KZG_TRUSTED_SETUP},
kzg::{Blob, Bytes48, BYTES_PER_BLOB, BYTES_PER_FIELD_ELEMENT},
};

/// A list of transaction hashes that the peer would like transaction bodies for.
#[derive_arbitrary(rlp)]
#[derive(Clone, Debug, PartialEq, Eq, RlpEncodableWrapper, RlpDecodableWrapper, Default)]
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/transaction/eip4844.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
constants::eip4844::DATA_GAS_PER_BLOB,
kzg::{
self, Blob, Bytes48, KzgCommitment, KzgProof, KzgSettings, BYTES_PER_BLOB,
BYTES_PER_COMMITMENT, BYTES_PER_FIELD_ELEMENT, BYTES_PER_PROOF, FIELD_ELEMENTS_PER_BLOB,
BYTES_PER_COMMITMENT, BYTES_PER_PROOF,
},
kzg_to_versioned_hash, Bytes, ChainId, Signature, Transaction, TransactionKind,
TransactionSigned, TransactionSignedNoHash, TxType, EIP4844_TX_TYPE_ID, H256,
Expand Down

0 comments on commit cd0bb61

Please sign in to comment.