Remove direct dependencies of void, async-trait

This commit is contained in:
Luke Parker
2025-01-12 03:48:43 -05:00
parent d854807edd
commit df9a9adaa8
5 changed files with 2 additions and 9 deletions

View File

@@ -225,8 +225,8 @@ impl SwarmTask {
SwarmEvent::Behaviour(
BehaviorEvent::AllowList(event) | BehaviorEvent::ConnectionLimits(event)
) => {
// Ensure these are unreachable cases, not actual events
let _: void::Void = event;
// This *is* an exhaustive match as these events are empty enums
match event {}
}
SwarmEvent::Behaviour(
BehaviorEvent::Ping(ping::Event { peer: _, connection, result, })