Skip to content

Commit

Permalink
add missing Error impl on HostNewError
Browse files Browse the repository at this point in the history
  • Loading branch information
jabuwu committed Nov 15, 2024
1 parent bc58cb6 commit 4c69b69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.4.0
- Add missing `Error` impl on `HostNewError`

# 0.3.3
- Reset peer on connection error in `enet::connected`

Expand Down
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ pub enum HostNewError<S: Socket> {
FailedToInitializeSocket(S::Error),
}

#[cfg(feature = "std")]
impl<S: Socket> std::error::Error for HostNewError<S> {}

impl<S: Socket> core::fmt::Debug for HostNewError<S> {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
match self {
Expand Down

0 comments on commit 4c69b69

Please sign in to comment.