add std::error::Error to smoltcp::Error

This commit is contained in:
qiujiangkun 2021-06-08 14:34:38 +08:00
parent 03429a8b4e
commit 0be1a76bc3
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>;