File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
extern crate tokio_openssl;
3
3
pub extern crate openssl;
4
4
5
- use futures:: { Future , BoxFuture } ;
5
+ use futures:: Future ;
6
6
use self :: openssl:: ssl:: { SslMethod , SslConnector , SslConnectorBuilder } ;
7
7
use self :: openssl:: error:: ErrorStack ;
8
8
use std:: error:: Error ;
9
9
use self :: tokio_openssl:: { SslConnectorExt , SslStream } ;
10
10
11
+ use BoxedFuture ;
11
12
use tls:: { Stream , TlsStream , Handshake } ;
12
13
13
14
impl TlsStream for SslStream < Stream > {
@@ -42,7 +43,7 @@ impl Handshake for OpenSsl {
42
43
self : Box < Self > ,
43
44
host : & str ,
44
45
stream : Stream ,
45
- ) -> BoxFuture < Box < TlsStream > , Box < Error + Sync + Send > > {
46
+ ) -> Box < Future < Item = Box < TlsStream > , Error = Box < Error + Sync + Send > > + Send > {
46
47
self . 0
47
48
. connect_async ( host, stream)
48
49
. map ( |s| {
@@ -53,6 +54,6 @@ impl Handshake for OpenSsl {
53
54
let e: Box < Error + Sync + Send > = Box :: new ( e) ;
54
55
e
55
56
} )
56
- . boxed ( )
57
+ . boxed2 ( )
57
58
}
58
59
}
You can’t perform that action at this time.
0 commit comments