feat(swarm)!: remove unused PendingConnectionError::Io variant (#3373)

This variant is never constructed.
This commit is contained in:
Thomas Eizinger
2023-01-26 16:26:54 +11:00
committed by GitHub
parent c94aabf8f6
commit 90af08cb59
4 changed files with 5 additions and 10 deletions

View File

@ -364,7 +364,6 @@ enum PendingInboundConnectionError {
TransportErrorMultiaddrNotSupported,
TransportErrorOther,
Aborted,
Io,
ConnectionLimit,
}
@ -386,7 +385,6 @@ impl From<&libp2p_swarm::PendingInboundConnectionError> for PendingInboundConnec
libp2p_swarm::PendingInboundConnectionError::Aborted => {
PendingInboundConnectionError::Aborted
}
libp2p_swarm::PendingInboundConnectionError::IO(_) => PendingInboundConnectionError::Io,
}
}
}