chore(clippy): make clippy happy (#2885)

This commit is contained in:
Matthias Seitz
2023-05-29 13:20:51 +02:00
committed by GitHub
parent b03208cea9
commit 5b73b2a1b1
2 changed files with 5 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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() {