aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_shared/src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/error.rs b/askama_shared/src/error.rs
index 650e275..bd35126 100644
--- a/askama_shared/src/error.rs
+++ b/askama_shared/src/error.rs
@@ -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,
}
}