diff options
| author | Steven Fackler <[email protected]> | 2017-12-26 08:55:12 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-12-26 08:55:12 -0700 |
| commit | ce0641f093ded46912515c014bf080cbd15dc87d (patch) | |
| tree | da8c9a0bdfff0120038d6e2874469c324707501f /openssl/src/ssl/error.rs | |
| parent | Merge pull request #798 from sfackler/deprecation (diff) | |
| download | rust-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.rs | 5 |
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 { |