Skip to content

Commit

Permalink
feat(swarm): add #[non_exhaustive] to key enums
Browse files Browse the repository at this point in the history
Add `#[non_exhaustive]` to the following enums so that future additions don't cause breaking changes in downstream client code: `FromSwarm`, `ToSwarm`, `SwarmEvent`, `ConnectionHandlerEvent`, `ConnectionEvent`.

Related: libp2p#4543.

Pull-Request: libp2p#4581.
  • Loading branch information
dhuseby authored Nov 2, 2023
1 parent f0374c3 commit 59ed7ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ impl NetworkBehaviour for Behaviour {
self.inner.on_swarm_event(listener_closed)
}
confirmed @ FromSwarm::ExternalAddrConfirmed(_) => self.inner.on_swarm_event(confirmed),
_ => {}
}
}

Expand Down

0 comments on commit 59ed7ac

Please sign in to comment.