Skip to content

Commit

Permalink
api: allow deprecated use of 'cause'
Browse files Browse the repository at this point in the history
... because we don't want to bump our MSRV just to fix this.
  • Loading branch information
BurntSushi committed Jan 27, 2019
1 parent 0c65da3 commit d8e5875
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ impl<W: ::std::any::Any> StdError for IntoInnerError<W> {
self.err.description()
}

#[allow(deprecated)]
fn cause(&self) -> Option<&StdError> {
self.err.cause()
}
Expand Down

0 comments on commit d8e5875

Please sign in to comment.