summaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorAtul Bhosale <atul1bhosale@gmail.com>2019-09-15 21:37:41 +0700
committerDoug Tangren <d.tangren@gmail.com>2019-09-15 23:37:41 +0900
commitf10534b3179dcbc2667b1c6aed3039a5f3a40f0f (patch)
tree53455630f2430e3ab9a369976425f5be055d6dff /src/errors.rs
parent63ef2b3b66616055535d9ad43253de1df83ab527 (diff)
Use 'dyn' since trait objects without an explicit 'dyn' are deprecated (#194)
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 3c9e459..85e46b8 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -79,7 +79,7 @@ impl StdError for Error {
}
}
- fn cause(&self) -> Option<&StdError> {
+ fn cause(&self) -> Option<&dyn StdError> {
match self {
Error::SerdeJsonError(ref err) => Some(err),
Error::Http(ref err) => Some(err),