Skip to content

Commit

Permalink
Impose non_exhaustive on Error
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Oct 22, 2024
1 parent 76ec665 commit ad816f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# v0.5.1
- Make `write_value` field in `#[protocol(tag(...))]` only required when deriving `ProtocolWrite`
- Impose `non_exhaustive` on `Error`
# v0.5.0
- Split `Protocol` into `ProtocolRead` and `ProtocolWrite`
- Split `ExternallyLengthPrefixed` into `TaggedRead` and `UntaggedWrite`
Expand Down
1 change: 1 addition & 0 deletions bin-proto/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
#[error(transparent)]
IO(#[from] std::io::Error),
Expand Down

0 comments on commit ad816f6

Please sign in to comment.