mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-18 04:21:22 +00:00
protocols/: Fix clippy and fmt warnings (#2433)
* protocols/mdns: fix clippy::to-string-in-format-args * protocols/gossipsub: fix rustfmt error
This commit is contained in:
@ -211,9 +211,11 @@ impl ProtocolsHandler for GossipsubHandler {
|
||||
|
||||
fn inject_fully_negotiated_inbound(
|
||||
&mut self,
|
||||
(substream, peer_kind): <Self::InboundProtocol as InboundUpgrade<NegotiatedSubstream>>::Output,
|
||||
protocol: <Self::InboundProtocol as InboundUpgrade<NegotiatedSubstream>>::Output,
|
||||
_info: Self::InboundOpenInfo,
|
||||
) {
|
||||
let (substream, peer_kind) = protocol;
|
||||
|
||||
// If the peer doesn't support the protocol, reject all substreams
|
||||
if self.protocol_unsupported {
|
||||
return;
|
||||
@ -233,9 +235,11 @@ impl ProtocolsHandler for GossipsubHandler {
|
||||
|
||||
fn inject_fully_negotiated_outbound(
|
||||
&mut self,
|
||||
(substream, peer_kind): <Self::OutboundProtocol as OutboundUpgrade<NegotiatedSubstream>>::Output,
|
||||
protocol: <Self::OutboundProtocol as OutboundUpgrade<NegotiatedSubstream>>::Output,
|
||||
message: Self::OutboundOpenInfo,
|
||||
) {
|
||||
let (substream, peer_kind) = protocol;
|
||||
|
||||
// If the peer doesn't support the protocol, reject all substreams
|
||||
if self.protocol_unsupported {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user