Skip to content

Commit

Permalink
Implement std::error::Error for Error when in std
Browse files Browse the repository at this point in the history
  • Loading branch information
jamwaffles committed Sep 2, 2023
1 parent c33ec10 commit 65e5116
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ pub enum Error {
},
}

#[cfg(feature = "std")]
impl std::error::Error for Error {}

impl core::fmt::Display for Error {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
match self {
Expand Down

0 comments on commit 65e5116

Please sign in to comment.