From ce0641f093ded46912515c014bf080cbd15dc87d Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 26 Dec 2017 08:55:12 -0700 Subject: Drop Any bounds --- openssl/src/ssl/error.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'openssl/src/ssl/error.rs') 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 { WouldBlock(MidHandshakeSslStream), } -impl StdError for HandshakeError { +impl StdError for HandshakeError { fn description(&self) -> &str { match *self { HandshakeError::SetupFailure(_) => "stream setup failed", @@ -124,7 +123,7 @@ impl StdError for HandshakeError { } } -impl fmt::Display for HandshakeError { +impl fmt::Display for HandshakeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str(StdError::description(self))?; match *self { -- cgit v1.2.3