From 24abd2e3198fd13d5c258aeb7db40316964110b0 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 30 Sep 2017 15:21:54 -0700 Subject: [PATCH] Remove more deprecated use --- tokio-postgres/src/tls/openssl.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tokio-postgres/src/tls/openssl.rs b/tokio-postgres/src/tls/openssl.rs index c6ff00a8..5c53dce8 100644 --- a/tokio-postgres/src/tls/openssl.rs +++ b/tokio-postgres/src/tls/openssl.rs @@ -2,12 +2,13 @@ extern crate tokio_openssl; pub extern crate openssl; -use futures::{Future, BoxFuture}; +use futures::Future; use self::openssl::ssl::{SslMethod, SslConnector, SslConnectorBuilder}; use self::openssl::error::ErrorStack; use std::error::Error; use self::tokio_openssl::{SslConnectorExt, SslStream}; +use BoxedFuture; use tls::{Stream, TlsStream, Handshake}; impl TlsStream for SslStream { @@ -42,7 +43,7 @@ impl Handshake for OpenSsl { self: Box, host: &str, stream: Stream, - ) -> BoxFuture, Box> { + ) -> Box, Error = Box> + Send> { self.0 .connect_async(host, stream) .map(|s| { @@ -53,6 +54,6 @@ impl Handshake for OpenSsl { let e: Box = Box::new(e); e }) - .boxed() + .boxed2() } }