diff options
author | Andrii Radyk <ander.ender@gmail.com> | 2019-12-21 23:53:49 +0100 |
---|---|---|
committer | Andrii Radyk <ander.ender@gmail.com> | 2019-12-21 23:53:49 +0100 |
commit | fc3c0a93d5d850e783cbe71e9102c4088bcc02e8 (patch) | |
tree | 8d8019bd65c4d4bcbdcd0ea575d58c5c12c07a7c /openssl/src/error.rs | |
parent | 0815ac9b5d6722a3c975172fb6638668a1638859 (diff) | |
download | rust-openssl-fc3c0a93d5d850e783cbe71e9102c4088bcc02e8.zip |
remove deprecated Error::description, replace deprecated cause with source
Diffstat (limited to 'openssl/src/error.rs')
-rw-r--r-- | openssl/src/error.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/openssl/src/error.rs b/openssl/src/error.rs index ea278b14..103baff2 100644 --- a/openssl/src/error.rs +++ b/openssl/src/error.rs @@ -75,11 +75,7 @@ impl fmt::Display for ErrorStack { } } -impl error::Error for ErrorStack { - fn description(&self) -> &str { - "An OpenSSL error stack" - } -} +impl error::Error for ErrorStack {} impl From<ErrorStack> for io::Error { fn from(e: ErrorStack) -> io::Error { @@ -285,8 +281,4 @@ impl fmt::Display for Error { } } -impl error::Error for Error { - fn description(&self) -> &str { - "an OpenSSL error" - } -} +impl error::Error for Error {} |