diff --git a/postgres/src/tls/mod.rs b/postgres/src/tls/mod.rs index 86b44232..2d02fa10 100644 --- a/postgres/src/tls/mod.rs +++ b/postgres/src/tls/mod.rs @@ -36,3 +36,13 @@ pub trait TlsHandshake: fmt::Debug { stream: Stream) -> Result, Box>; } + +impl TlsHandshake for Box { + fn tls_handshake(&self, + host: &str, + stream: Stream) + -> Result, Box> { + (**self).tls_handshake(host, stream) + } +} +