Remove unreachable void pattern for ConnectionLimits (#8871)

Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
Jimmy Chen
2026-02-20 15:27:33 +11:00
committed by GitHub
parent 9cb72100d4
commit 8d4af658bd

View File

@@ -1861,8 +1861,6 @@ impl<E: EthSpec> Network<E> {
self.inject_upnp_event(e); self.inject_upnp_event(e);
None None
} }
#[allow(unreachable_patterns)]
BehaviourEvent::ConnectionLimits(le) => libp2p::core::util::unreachable(le),
}, },
SwarmEvent::ConnectionEstablished { .. } => None, SwarmEvent::ConnectionEstablished { .. } => None,
SwarmEvent::ConnectionClosed { .. } => None, SwarmEvent::ConnectionClosed { .. } => None,