diff --git a/sec1/src/error.rs b/sec1/src/error.rs index 0d8bc8b70..75e39a5ed 100644 --- a/sec1/src/error.rs +++ b/sec1/src/error.rs @@ -36,6 +36,8 @@ pub enum Error { Version, } +impl core::error::Error for Error {} + impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { @@ -77,6 +79,3 @@ impl From for Error { Error::Pkcs8(pkcs8::Error::PublicKey(err)) } } - -#[cfg(feature = "std")] -impl std::error::Error for Error {}