From 9365be711fd8b7e38a039c55d2a8650d76307411 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Fri, 25 Sep 2020 13:12:15 +0200 Subject: [PATCH] swarm/src/protocols_handler.rs: Remove redundant trait bound (#1773) `Send` and `'static` are already implied by `InboundUpgradeSend`. --- swarm/src/protocols_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/src/protocols_handler.rs b/swarm/src/protocols_handler.rs index 7d2f4d07..3c4eeea6 100644 --- a/swarm/src/protocols_handler.rs +++ b/swarm/src/protocols_handler.rs @@ -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`.