diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-01-11 14:56:40 +0100 |
---|---|---|
committer | Juan Aguilar <mhpoin@gmail.com> | 2019-01-12 22:36:01 +0100 |
commit | 21c478ecb021f293c21cac4a24c4ed4551bb15fd (patch) | |
tree | 08f71f9565a6f6eb502db82302838e0124475ac5 | |
parent | d1a7ee02e5f8ebdc02cd973899202ec730a6f4bd (diff) | |
download | askama-21c478ecb021f293c21cac4a24c4ed4551bb15fd.tar.gz askama-21c478ecb021f293c21cac4a24c4ed4551bb15fd.tar.bz2 askama-21c478ecb021f293c21cac4a24c4ed4551bb15fd.zip |
Rename deprecate method Error::cause()
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/error.rs | 4 |
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, } } |