mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 17:18:08 -05:00
chore(clippy): make clippy happy (#2885)
This commit is contained in:
@@ -330,7 +330,7 @@ mod tests {
|
||||
|
||||
for checkpoint in checkpoints {
|
||||
let mut buf = Vec::new();
|
||||
let encoded = checkpoint.clone().to_compact(&mut buf);
|
||||
let encoded = checkpoint.to_compact(&mut buf);
|
||||
let (decoded, _) = StageUnitCheckpoint::from_compact(&buf, encoded);
|
||||
assert_eq!(decoded, checkpoint);
|
||||
}
|
||||
|
||||
@@ -12,8 +12,8 @@ pub use typed::*;
|
||||
|
||||
use reth_primitives::{
|
||||
rpc::transaction::eip2930::AccessListItem, Address, BlockNumber, Bytes,
|
||||
Transaction as PrimitiveTransaction, TransactionKind, TransactionSignedEcRecovered, TxType,
|
||||
H256, U128, U256, U64,
|
||||
Transaction as PrimitiveTransaction, TransactionKind as PrimitiveTransactionKind,
|
||||
TransactionSignedEcRecovered, TxType, H256, U128, U256, U64,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -105,8 +105,8 @@ impl Transaction {
|
||||
let signed_tx = tx.into_signed();
|
||||
|
||||
let to = match signed_tx.kind() {
|
||||
TransactionKind::Create => None,
|
||||
TransactionKind::Call(to) => Some(*to),
|
||||
PrimitiveTransactionKind::Create => None,
|
||||
PrimitiveTransactionKind::Call(to) => Some(*to),
|
||||
};
|
||||
|
||||
let (gas_price, max_fee_per_gas) = match signed_tx.tx_type() {
|
||||
|
||||
Reference in New Issue
Block a user