add match_same_arms clippy lint (#8549)

This commit is contained in:
Thomas Coratger
2024-06-03 19:42:25 +02:00
committed by GitHub
parent 0f1bad98f2
commit e02b935e94
34 changed files with 259 additions and 310 deletions

View File

@ -222,6 +222,7 @@ impl Discv5 {
/// Process an event from the underlying [`discv5::Discv5`] node.
pub fn on_discv5_update(&self, update: discv5::Event) -> Option<DiscoveredPeer> {
#[allow(clippy::match_same_arms)]
match update {
discv5::Event::SocketUpdated(_) | discv5::Event::TalkRequest(_) |
// `Discovered` not unique discovered peers