Skip to content

Commit

Permalink
Implement std::error::Error when not using failure
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Sep 23, 2019
1 parent b4b6226 commit 3ff0557
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 @@ -49,6 +49,9 @@ impl Fail for Error {
}
}

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

impl Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
Display::fmt(&self.inner, f)
Expand Down

0 comments on commit 3ff0557

Please sign in to comment.