From ba880f9927a68bc1a40f1b71e60777cb45ef5ba0 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 24 May 2025 11:07:46 +0200 Subject: [PATCH] chore: rm outdated unreachable patterns (#16457) --- crates/rpc/rpc-eth-types/src/receipt.rs | 2 -- crates/transaction-pool/src/test_utils/mock.rs | 3 --- 2 files changed, 5 deletions(-) diff --git a/crates/rpc/rpc-eth-types/src/receipt.rs b/crates/rpc/rpc-eth-types/src/receipt.rs index 6bf2c5318e..d10bb1d4a3 100644 --- a/crates/rpc/rpc-eth-types/src/receipt.rs +++ b/crates/rpc/rpc-eth-types/src/receipt.rs @@ -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!(), }, )?; diff --git a/crates/transaction-pool/src/test_utils/mock.rs b/crates/transaction-pool/src/test_utils/mock.rs index d76c5a0ba5..8f3be6e504 100644 --- a/crates/transaction-pool/src/test_utils/mock.rs +++ b/crates/transaction-pool/src/test_utils/mock.rs @@ -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"), } }