From 4d472d787d86b0a9b12db2fea6ec67c2e9f46ac1 Mon Sep 17 00:00:00 2001 From: Rishabh Das Date: Sun, 31 Aug 2025 21:59:28 +0530 Subject: [PATCH] Implement `core::error::Error` for Error when `std` feature is not enabled --- src/error.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 5b7b642..72e44f0 100644 --- a/src/error.rs +++ b/src/error.rs @@ -53,5 +53,6 @@ impl Display for Error { } } #[cfg(feature = "std")] -// TODO expose to no_std when error_in_core stabilized (https://github.com/rust-lang/rust/issues/103765) impl std::error::Error for Error {} +#[cfg(not(feature = "std"))] +impl core::error::Error for Error {}