Skip to content

Commit 89deac2

Browse files
feat!: mark Protocol as non_exhaustive (#82)
1 parent 86c2088 commit 89deac2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
- Add `WebTransport` instance for `Multiaddr`. See [PR 70].
44
- Disable all features of `multihash`. See [PR 77].
5+
- Mark `Protocol` as `#[non_exhaustive]`. See [PR 82].
56

67
[PR 70]: https://github.com/multiformats/rust-multiaddr/pull/70
78
[PR 77]: https://github.com/multiformats/rust-multiaddr/pull/77
9+
[PR 82]: https://github.com/multiformats/rust-multiaddr/pull/82
810

911
# 0.17.0
1012

src/protocol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const PATH_SEGMENT_ENCODE_SET: &percent_encoding::AsciiSet = &percent_encoding::
7979
/// platform-specific. This means that the actual validation of paths needs to
8080
/// happen separately.
8181
#[derive(PartialEq, Eq, Clone, Debug)]
82+
#[non_exhaustive]
8283
pub enum Protocol<'a> {
8384
Dccp(u16),
8485
Dns(Cow<'a, str>),

0 commit comments

Comments
 (0)