aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/error.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2017-12-26 08:55:12 -0700
committerSteven Fackler <[email protected]>2017-12-26 08:55:12 -0700
commitce0641f093ded46912515c014bf080cbd15dc87d (patch)
treeda8c9a0bdfff0120038d6e2874469c324707501f /openssl/src/ssl/error.rs
parentMerge pull request #798 from sfackler/deprecation (diff)
downloadrust-openssl-ce0641f093ded46912515c014bf080cbd15dc87d.tar.xz
rust-openssl-ce0641f093ded46912515c014bf080cbd15dc87d.zip
Drop Any bounds
Diffstat (limited to 'openssl/src/ssl/error.rs')
-rw-r--r--openssl/src/ssl/error.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/openssl/src/ssl/error.rs b/openssl/src/ssl/error.rs
index 358a88b0..64941f18 100644
--- a/openssl/src/ssl/error.rs
+++ b/openssl/src/ssl/error.rs
@@ -1,4 +1,3 @@
-use std::any::Any;
use std::error;
use std::error::Error as StdError;
use std::fmt;
@@ -107,7 +106,7 @@ pub enum HandshakeError<S> {
WouldBlock(MidHandshakeSslStream<S>),
}
-impl<S: Any + fmt::Debug> StdError for HandshakeError<S> {
+impl<S: fmt::Debug> StdError for HandshakeError<S> {
fn description(&self) -> &str {
match *self {
HandshakeError::SetupFailure(_) => "stream setup failed",
@@ -124,7 +123,7 @@ impl<S: Any + fmt::Debug> StdError for HandshakeError<S> {
}
}
-impl<S: Any + fmt::Debug> fmt::Display for HandshakeError<S> {
+impl<S: fmt::Debug> fmt::Display for HandshakeError<S> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(StdError::description(self))?;
match *self {