mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add match_same_arms clippy lint (#8549)
This commit is contained in:
@ -244,7 +244,7 @@ impl ValidateTx68 for EthMessageFilter {
|
||||
fn max_encoded_tx_length(&self, ty: TxType) -> Option<usize> {
|
||||
// the biggest transaction so far is a blob transaction, which is currently max 2^17,
|
||||
// encoded length, nonetheless, the blob tx may become bigger in the future.
|
||||
#[allow(unreachable_patterns)]
|
||||
#[allow(unreachable_patterns, clippy::match_same_arms)]
|
||||
match ty {
|
||||
TxType::Legacy | TxType::Eip2930 | TxType::Eip1559 => Some(MAX_MESSAGE_SIZE),
|
||||
TxType::Eip4844 => None,
|
||||
|
||||
Reference in New Issue
Block a user