From 21c478ecb021f293c21cac4a24c4ed4551bb15fd Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 11 Jan 2019 14:56:40 +0100 Subject: Rename deprecate method Error::cause() --- askama_shared/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_shared') 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, } } -- cgit