summaryrefslogtreecommitdiff
path: root/openssl/src/error.rs
diff options
context:
space:
mode:
authorAndrii Radyk <ander.ender@gmail.com>2019-12-21 23:53:49 +0100
committerAndrii Radyk <ander.ender@gmail.com>2019-12-21 23:53:49 +0100
commitfc3c0a93d5d850e783cbe71e9102c4088bcc02e8 (patch)
tree8d8019bd65c4d4bcbdcd0ea575d58c5c12c07a7c /openssl/src/error.rs
parent0815ac9b5d6722a3c975172fb6638668a1638859 (diff)
downloadrust-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.rs12
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 {}