Skip to content

Commit

Permalink
Merge pull request #485 from qiujiangkun/add_std_error_error
Browse files Browse the repository at this point in the history
impl std::error::Error for smoltcp::Error
  • Loading branch information
Dirbaio authored Jun 8, 2021
2 parents 7e62f68 + 52d8802 commit a874ed1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ pub enum Error {
Dropped,
}

#[cfg(feature = "std")]
impl std::error::Error for Error {}

/// The result type for the networking stack.
pub type Result<T> = core::result::Result<T, Error>;

Expand Down

0 comments on commit a874ed1

Please sign in to comment.