From 6828bbacc9c94759b3768dc37e624c505efb3571 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 28 Sep 2024 18:05:50 +0200 Subject: [PATCH] chore: use core::error (#11313) --- crates/primitives-traits/src/error.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/primitives-traits/src/error.rs b/crates/primitives-traits/src/error.rs index ef088a920e..97b33bd618 100644 --- a/crates/primitives-traits/src/error.rs +++ b/crates/primitives-traits/src/error.rs @@ -19,8 +19,7 @@ impl fmt::Display for GotExpected { } } -#[cfg(feature = "std")] -impl std::error::Error for GotExpected {} +impl core::error::Error for GotExpected {} impl From<(T, T)> for GotExpected { #[inline] @@ -57,8 +56,7 @@ impl fmt::Display for GotExpectedBoxed { } } -#[cfg(feature = "std")] -impl std::error::Error for GotExpectedBoxed {} +impl core::error::Error for GotExpectedBoxed {} impl Deref for GotExpectedBoxed { type Target = GotExpected;