Skip to content

Commit

Permalink
Add Other error type.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Apr 4, 2024
1 parent fafc241 commit 3322c4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# v0.3.3
- Add `Other` error type
# v0.3.2
- Use `std::net` instead of `core::net`
# v0.3.1
Expand Down
2 changes: 1 addition & 1 deletion bin-proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bin-proto"
version = "0.3.2"
version = "0.3.3"
authors = [
"Wojciech Graj <[email protected]>",
"Dylan McKay <[email protected]>"
Expand Down
5 changes: 2 additions & 3 deletions bin-proto/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ pub enum Error {
FromNulError(#[from] std::ffi::NulError),
#[error("{0}")]
TryFromIntError(#[from] std::num::TryFromIntError),
#[cfg(feature = "uuid")]
#[error("{0}")]
UuidParseError(#[from] uuid::Error),
#[error("received unknown enum discriminant '{0}'")]
UnknownEnumDiscriminant(String),
#[error("{0}")]
Other(Box<dyn std::error::Error>),
}

0 comments on commit 3322c4d

Please sign in to comment.