Skip to content

Commit 9365be7

Browse files
authored
swarm/src/protocols_handler.rs: Remove redundant trait bound (#1773)
`Send` and `'static` are already implied by `InboundUpgradeSend`.
1 parent c14f0c5 commit 9365be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swarm/src/protocols_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub trait ProtocolsHandler: Send + 'static {
107107
/// The type of errors returned by [`ProtocolsHandler::poll`].
108108
type Error: error::Error + Send + 'static;
109109
/// The inbound upgrade for the protocol(s) used by the handler.
110-
type InboundProtocol: InboundUpgradeSend + Send + 'static;
110+
type InboundProtocol: InboundUpgradeSend;
111111
/// The outbound upgrade for the protocol(s) used by the handler.
112112
type OutboundProtocol: OutboundUpgradeSend;
113113
/// The type of additional information returned from `listen_protocol`.

0 commit comments

Comments
 (0)