From 0be1a76bc3bb481027a63f095e99a165344b1d7e Mon Sep 17 00:00:00 2001 From: qiujiangkun Date: Tue, 8 Jun 2021 14:34:38 +0800 Subject: [PATCH] add std::error::Error to smoltcp::Error --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 028edf8..9b83b47 100644 --- a/src/lib.rs +++ b/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 = core::result::Result;