aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-01-11 14:56:40 +0100
committerLibravatar Juan Aguilar <mhpoin@gmail.com>2019-01-12 22:36:01 +0100
commit21c478ecb021f293c21cac4a24c4ed4551bb15fd (patch)
tree08f71f9565a6f6eb502db82302838e0124475ac5 /askama_shared/src
parentd1a7ee02e5f8ebdc02cd973899202ec730a6f4bd (diff)
downloadaskama-21c478ecb021f293c21cac4a24c4ed4551bb15fd.tar.gz
askama-21c478ecb021f293c21cac4a24c4ed4551bb15fd.tar.bz2
askama-21c478ecb021f293c21cac4a24c4ed4551bb15fd.zip
Rename deprecate method Error::cause()
Diffstat (limited to 'askama_shared/src')
-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,
}
}