Skip to content

Commit

Permalink
Allow deprecated usage of Error::cause
Browse files Browse the repository at this point in the history
std::io::Error hasn't implemented `Error::source`, so we can't use that
yet.
  • Loading branch information
jasonwhite committed Dec 28, 2018
1 parent 7c099e9 commit 28a7fed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ impl error::Error for PathError {
fn description(&self) -> &str {
self.err.description()
}


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

0 comments on commit 28a7fed

Please sign in to comment.