Skip to content

Commit 087c3d3

Browse files
authored
error: impl core::error::Error (#530)
1 parent d1af98c commit 087c3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ pub enum Error {
7474
Rng,
7575
}
7676

77-
#[cfg(feature = "std")]
78-
impl std::error::Error for Error {}
77+
impl core::error::Error for Error {}
78+
7979
impl core::fmt::Display for Error {
8080
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
8181
match self {

0 commit comments

Comments
 (0)