Skip to content

Commit 4d472d7

Browse files
committed
Implement core::error::Error for Error when std feature is not enabled
1 parent 76e5998 commit 4d472d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/error.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ impl Display for Error {
5353
}
5454
}
5555
#[cfg(feature = "std")]
56-
// TODO expose to no_std when error_in_core stabilized (https://github.com/rust-lang/rust/issues/103765)
5756
impl std::error::Error for Error {}
57+
#[cfg(not(feature = "std"))]
58+
impl core::error::Error for Error {}

0 commit comments

Comments
 (0)