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

@ -167,7 +167,7 @@ impl Stream for MockDiscovery {
}))
}
}
Message::Pong(_) => {}
Message::Pong(_) | Message::Neighbours(_) => {}
Message::FindNode(msg) => {
if let Some(nodes) = this.pending_neighbours.remove(&msg.id) {
let msg = Message::Neighbours(Neighbours {
@ -181,7 +181,6 @@ impl Stream for MockDiscovery {
}))
}
}
Message::Neighbours(_) => {}
Message::EnrRequest(_) | Message::EnrResponse(_) => todo!(),
},
}