Skip to content

Commit

Permalink
Replace Error::cause with Error::source
Browse files Browse the repository at this point in the history
  • Loading branch information
d-k-bo committed Oct 6, 2023
1 parent f2db94e commit 4efd0e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Replace `Error::cause` with `Error::source`

## [0.1.1] - 2023-10-04

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Display for Error {
}
}
impl std::error::Error for Error {
fn cause(&self) -> Option<&dyn std::error::Error> {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self {
Error::Reqwest(e) => Some(e),
Error::EmptyResponse => None,
Expand Down

0 comments on commit 4efd0e9

Please sign in to comment.