Skip to content

Commit 3482a0d

Browse files
committed
chore: fmt
1 parent 178d3fb commit 3482a0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl GossipReceiver {
295295

296296
/// Waits until we are connected to at least one node.
297297
///
298-
/// Progresses the event stream to the first [`GossipEvent::NeighborUp`] event.
298+
/// Progresses the event stream to the first [`Event::NeighborUp`] event.
299299
///
300300
/// Note that this consumes this initial `NeighborUp` event. If you want to track
301301
/// neighbors, use [`Self::neighbors`] after awaiting [`Self::joined`], and then
@@ -335,7 +335,7 @@ impl Stream for GossipReceiver {
335335

336336
/// Events emitted from a gossip topic.
337337
///
338-
/// These are the events emitted from a [`GossipReceiver`], wrapped in [`Event::Gossip`].
338+
/// These are the events emitted from a [`GossipReceiver`].
339339
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Serialize, Deserialize)]
340340
pub enum Event {
341341
/// We have a new, direct neighbor in the swarm membership layer for this topic.

src/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ pub(crate) mod test {
15261526
match ev {
15271527
Event::Lagged => tracing::debug!("missed some messages :("),
15281528
Event::Received(_) => unreachable!("test does not send messages"),
1529-
other @ _ => tracing::debug!(?other, "gs event"),
1529+
other => tracing::debug!(?other, "gs event"),
15301530
}
15311531
}
15321532

0 commit comments

Comments
 (0)