From b949e1bb3cac7dcfad195daa1ab498b0f2d0b2a5 Mon Sep 17 00:00:00 2001 From: Tobias Decking Date: Tue, 27 May 2025 19:05:20 +0200 Subject: [PATCH] Unconditionally implement `core::error::Error` --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 21bde96..4d04cba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -121,9 +121,7 @@ impl core::fmt::Display for CollectionAllocErr { } } -#[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] -impl std::error::Error for CollectionAllocErr {} +impl core::error::Error for CollectionAllocErr {} /// Either a stack array with `length <= N` or a heap array /// whose pointer and capacity are stored here.