Skip to content

Commit 4aeb8f2

Browse files
committed
Impl std::error::Error for Error
1 parent 62a65db commit 4aeb8f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

negentropy/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ pub enum Error {
8080
},
8181
}
8282

83+
#[cfg(feature = "std")]
84+
impl std::error::Error for Error {}
85+
8386
impl fmt::Display for Error {
8487
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
8588
match self {

0 commit comments

Comments
 (0)