aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/error.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2017-12-26 08:00:40 -0800
committerGitHub <[email protected]>2017-12-26 08:00:40 -0800
commit3fe5d562fb944065e30611c5a4b0a55af3918ca1 (patch)
treeda8c9a0bdfff0120038d6e2874469c324707501f /openssl/src/ssl/error.rs
parentMerge pull request #798 from sfackler/deprecation (diff)
parentDrop Any bounds (diff)
downloadrust-openssl-3fe5d562fb944065e30611c5a4b0a55af3918ca1.tar.xz
rust-openssl-3fe5d562fb944065e30611c5a4b0a55af3918ca1.zip
Merge pull request #799 from sfackler/no-any
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 {