mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-01 10:35:05 -05:00
chore: rm outdated unreachable patterns (#16457)
This commit is contained in:
@@ -124,8 +124,6 @@ impl EthReceiptBuilder {
|
||||
TxType::Eip1559 => ReceiptEnvelope::Eip1559(receipt_with_bloom),
|
||||
TxType::Eip4844 => ReceiptEnvelope::Eip4844(receipt_with_bloom),
|
||||
TxType::Eip7702 => ReceiptEnvelope::Eip7702(receipt_with_bloom),
|
||||
#[expect(unreachable_patterns)]
|
||||
_ => unreachable!(),
|
||||
},
|
||||
)?;
|
||||
|
||||
|
||||
@@ -389,15 +389,12 @@ impl MockTransaction {
|
||||
/// * [`MockTransaction::eip1559`]
|
||||
/// * [`MockTransaction::eip4844`]
|
||||
pub fn new_from_type(tx_type: TxType) -> Self {
|
||||
#[expect(unreachable_patterns)]
|
||||
match tx_type {
|
||||
TxType::Legacy => Self::legacy(),
|
||||
TxType::Eip2930 => Self::eip2930(),
|
||||
TxType::Eip1559 => Self::eip1559(),
|
||||
TxType::Eip4844 => Self::eip4844(),
|
||||
TxType::Eip7702 => Self::eip7702(),
|
||||
|
||||
_ => unreachable!("Invalid transaction type"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user