chore: rm outdated unreachable patterns (#16457)

This commit is contained in:
Matthias Seitz
2025-05-24 11:07:46 +02:00
committed by GitHub
parent 7ca286110f
commit ba880f9927
2 changed files with 0 additions and 5 deletions

View File

@@ -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!(),
},
)?;

View File

@@ -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"),
}
}