File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,6 @@ impl Connection {
238
238
239
239
fn handle_auth_response ( self , message : Vec < u8 > ) -> BoxFuture < Connection , ConnectError > {
240
240
self . 0 . send ( message)
241
- . and_then ( |s| s. flush ( ) )
242
241
. and_then ( |s| s. read ( ) )
243
242
. map_err ( ConnectError :: Io )
244
243
. and_then ( |( m, s) | {
@@ -277,7 +276,6 @@ impl Connection {
277
276
. map ( |( ) | buf)
278
277
. into_future ( )
279
278
. and_then ( move |buf| self . 0 . send ( buf) )
280
- . and_then ( |s| s. flush ( ) )
281
279
. map_err ( Error :: Io )
282
280
. and_then ( |s| Connection ( s) . simple_read_rows ( vec ! [ ] ) )
283
281
. boxed ( )
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ pub fn connect(host: Host,
34
34
}
35
35
} ;
36
36
37
- let ( required, mut handshaker) = match tls_mode {
37
+ let ( required, handshaker) = match tls_mode {
38
38
TlsMode :: Require ( h) => ( true , h) ,
39
39
TlsMode :: Prefer ( h) => ( false , h) ,
40
40
TlsMode :: None => {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ impl TlsStream for Stream {
26
26
}
27
27
28
28
pub trait Handshake : ' static + Sync + Send {
29
- fn handshake ( & mut self ,
29
+ fn handshake ( self : Box < Self > ,
30
30
host : & str ,
31
31
stream : Stream )
32
32
-> BoxFuture < Box < TlsStream > , Box < Error + Sync + Send > > ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ impl From<SslConnector> for OpenSsl {
32
32
}
33
33
34
34
impl Handshake for OpenSsl {
35
- fn handshake ( & mut self ,
35
+ fn handshake ( self : Box < Self > ,
36
36
host : & str ,
37
37
stream : Stream )
38
38
-> BoxFuture < Box < TlsStream > , Box < Error + Sync + Send > > {
You can’t perform that action at this time.
0 commit comments