Explorar el Código

Merge pull request #485 from qiujiangkun/add_std_error_error

impl std::error::Error for smoltcp::Error
Dario Nieuwenhuis hace 3 años
padre
commit
a874ed1183
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/lib.rs

+ 3 - 0
src/lib.rs

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