From d0247724542884cc02bc205dc10983952a5e9913 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 7 Oct 2024 18:10:54 -0600 Subject: [PATCH] der: use `core::error::Error` Allows the `Error` trait to be used on `no_std` platforms --- der/src/error.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/der/src/error.rs b/der/src/error.rs index 902863d49..6ef89f2bd 100644 --- a/der/src/error.rs +++ b/der/src/error.rs @@ -70,8 +70,7 @@ impl Error { } } -#[cfg(feature = "std")] -impl std::error::Error for Error {} +impl core::error::Error for Error {} impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {