Skip to content

Commit

Permalink
Rename deprecate method Error::cause()
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored and zzau13 committed Jan 12, 2019
1 parent d1a7ee0 commit 21c478e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions askama_shared/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ impl ErrorTrait for Error {

fn cause(&self) -> Option<&dyn ErrorTrait> {
match *self {
Error::Fmt(ref err) => err.cause(),
Error::Fmt(ref err) => err.source(),
#[cfg(feature = "serde_json")]
Error::Json(ref err) => err.cause(),
Error::Json(ref err) => err.source(),
_ => None,
}
}
Expand Down

0 comments on commit 21c478e

Please sign in to comment.