Implement std::fmt::Debug for all public types

This commit is contained in:
Sebastian Dröge
2016-11-14 20:49:37 +02:00
parent 37800f84d3
commit d624b0ef29
4 changed files with 23 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
use std::io::{self, Read, Write};
use std::net::SocketAddr;
use std::time::Duration;
use std::fmt;
use hyper::net::{SslClient, HttpStream, NetworkStream};
use native_tls::{TlsConnector, TlsStream as NativeTlsStream, HandshakeError};
@@ -34,6 +35,13 @@ impl SslClient for TlsClient {
}
}
impl fmt::Debug for TlsClient {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_tuple("TlsClient").field(&"_").finish()
}
}
#[derive(Debug)]
pub struct TlsStream(NativeTlsStream<HttpStream>);
impl Read for TlsStream {