Skip to content

Commit 7c19b93

Browse files
committed
Make Error non_exhaustive
1 parent dd1dd04 commit 7c19b93

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎CHANGELOG.md‎

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

33
## Unreleased
44

5-
- Added `Error::PortUnregistrationError`. `Error` is not `#[non_exhaustive]`, so exhaustive
6-
`match`es on it must handle the new variant.
5+
- `Error` is now `#[non_exhaustive]`. `match`es on it outside of this crate need a wildcard arm.
6+
- Added `Error::PortUnregistrationError`.
77
- `Client::unregister_port` now returns `Err(Error::PortUnregistrationError)` on failure instead
88
of `Err(Error::PortDisconnectionError)`.
99

‎src/jack_enums.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::ClientStatus;
22

33
/// An error that can occur in JACK.
44
#[derive(Clone, Debug, Eq, PartialEq)]
5+
#[non_exhaustive]
56
pub enum Error {
67
LibraryError(String),
78
CallbackDeregistrationError,

0 commit comments

Comments
 (0)