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

@ -1611,7 +1611,6 @@ impl From<PendingOutboundConnectionError> for DialError {
PendingConnectionError::WrongPeerId { obtained, endpoint } => {
DialError::WrongPeerId { obtained, endpoint }
}
PendingConnectionError::IO(e) => DialError::ConnectionIo(e),
PendingConnectionError::Transport(e) => DialError::Transport(e),
}
}