add std::error::Error to smoltcp::Error
This commit is contained in:
parent
03429a8b4e
commit
0be1a76bc3
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue