swarm/src/protocols_handler.rs: Remove redundant trait bound (#1773)

`Send` and `'static` are already implied by `InboundUpgradeSend`.
This commit is contained in:
Max Inden 2020-09-25 13:12:15 +02:00 committed by GitHub
parent c14f0c5b18
commit 9365be711f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ pub trait ProtocolsHandler: Send + 'static {
/// The type of errors returned by [`ProtocolsHandler::poll`].
type Error: error::Error + Send + 'static;
/// The inbound upgrade for the protocol(s) used by the handler.
type InboundProtocol: InboundUpgradeSend + Send + 'static;
type InboundProtocol: InboundUpgradeSend;
/// The outbound upgrade for the protocol(s) used by the handler.
type OutboundProtocol: OutboundUpgradeSend;
/// The type of additional information returned from `listen_protocol`.