chore: make clippy happy (#6666)

This commit is contained in:
Dan Cline
2024-02-19 01:31:47 -05:00
committed by GitHub
parent 79f1fa3c10
commit 79452eadaf
86 changed files with 106 additions and 241 deletions

View File

@ -223,9 +223,9 @@ impl FilterAnnouncement for EthAnnouncementFilter {
let NewPooledTransactionHashes68 { mut hashes, mut types, mut sizes } = msg;
debug_assert!(
hashes.len() == types.len() && hashes.len() == sizes.len(), "`%hashes`, `%types` and `%sizes` should all be the same length, decoding of `NewPooledTransactionHashes68` should handle this,
`%hashes`: {hashes:?},
`%types`: {types:?},
hashes.len() == types.len() && hashes.len() == sizes.len(), "`%hashes`, `%types` and `%sizes` should all be the same length, decoding of `NewPooledTransactionHashes68` should handle this,
`%hashes`: {hashes:?},
`%types`: {types:?},
`%sizes: {sizes:?}`"
);
@ -332,7 +332,6 @@ impl FilterAnnouncement for EthAnnouncementFilter {
#[cfg(test)]
mod test {
use super::*;
use reth_eth_wire::MAX_MESSAGE_SIZE;
use reth_primitives::B256;
use std::str::FromStr;