Skip to content

Commit b18033c

Browse files
committed
Fix lints
1 parent e831178 commit b18033c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

rust/hermes-ipfs/src/lib.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ pub struct MessageId(pub PubsubMessageId);
4040
pub struct HermesIpfsBuilder<N>(IpfsBuilder<N>)
4141
where N: NetworkBehaviour<ToSwarm = Infallible> + Send + Sync;
4242

43+
impl Default for HermesIpfsBuilder<dummy::Behaviour> {
44+
fn default() -> Self {
45+
Self(IpfsBuilder::new())
46+
}
47+
}
48+
4349
impl<N> HermesIpfsBuilder<N>
4450
where N: NetworkBehaviour<ToSwarm = Infallible> + Send + Sync
4551
{
@@ -591,7 +597,7 @@ impl FromStr for GetIpfsFile {
591597
}
592598
}
593599

594-
/// GossipsubEvents related to subscription state
600+
/// `GossipsubEvents` related to subscription state
595601
#[derive(Display, Debug)]
596602
pub enum SubscriptionStatusEvent {
597603
/// Peer has been subscribed
@@ -621,13 +627,13 @@ where
621627
while let Some(msg) = stream.next().await {
622628
match msg {
623629
connexa::prelude::GossipsubEvent::Subscribed { peer_id } => {
624-
subscription_handler(SubscriptionStatusEvent::Subscribed { peer_id })
630+
subscription_handler(SubscriptionStatusEvent::Subscribed { peer_id });
625631
},
626632
connexa::prelude::GossipsubEvent::Unsubscribed { peer_id } => {
627-
subscription_handler(SubscriptionStatusEvent::Unsubscribed { peer_id })
633+
subscription_handler(SubscriptionStatusEvent::Unsubscribed { peer_id });
628634
},
629635
connexa::prelude::GossipsubEvent::Message { message } => message_handler(message),
630-
};
636+
}
631637
}
632638
})
633639
}

0 commit comments

Comments
 (0)