Merge pull request #485 from qiujiangkun/add_std_error_error

impl std::error::Error for smoltcp::Error
This commit is contained in:
Dario Nieuwenhuis 2021-06-08 10:49:19 +02:00 committed by GitHub
commit 2c6567bc4b
1 changed files with 3 additions and 0 deletions

View File

@ -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>;