Skip to content

Commit dff2390

Browse files
authored
Unconditionally implement core::error::Error (#380)
1 parent 3906fe4 commit dff2390

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ impl core::fmt::Display for CollectionAllocErr {
121121
}
122122
}
123123

124-
#[cfg(feature = "std")]
125-
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
126-
impl std::error::Error for CollectionAllocErr {}
124+
impl core::error::Error for CollectionAllocErr {}
127125

128126
/// Either a stack array with `length <= N` or a heap array
129127
/// whose pointer and capacity are stored here.

0 commit comments

Comments
 (0)