mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-24 18:52:14 +00:00
swarm/src/protocols_handler.rs: Remove redundant trait bound (#1773)
`Send` and `'static` are already implied by `InboundUpgradeSend`.
This commit is contained in:
parent
c14f0c5b18
commit
9365be711f
@ -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`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user