@@ -2,7 +2,7 @@ use futures::prelude::*;
22use linkerd_io as io;
33use linkerd_stack:: { NewService , Service } ;
44use linkerd_tls:: { client:: AlpnProtocols , ClientTls , HasNegotiatedProtocol , NegotiatedProtocolRef } ;
5- use std:: { pin:: Pin , sync:: Arc } ;
5+ use std:: { pin:: Pin , sync:: Arc , task :: Context } ;
66use tokio:: sync:: watch;
77use tokio_rustls:: rustls:: { ClientConfig , Session } ;
88
8484 type Error = io:: Error ;
8585 type Future = ConnectFuture < I > ;
8686
87- fn poll_ready (
88- & mut self ,
89- _cx : & mut std:: task:: Context < ' _ > ,
90- ) -> std:: task:: Poll < Result < ( ) , Self :: Error > > {
91- std:: task:: Poll :: Ready ( Ok ( ( ) ) )
87+ fn poll_ready ( & mut self , _cx : & mut Context < ' _ > ) -> io:: Poll < ( ) > {
88+ io:: Poll :: Ready ( Ok ( ( ) ) )
9289 }
9390
9491 fn call ( & mut self , io : I ) -> Self :: Future {
@@ -104,7 +101,7 @@ impl<I: io::AsyncRead + io::AsyncWrite + Unpin> io::AsyncRead for ClientIo<I> {
104101 #[ inline]
105102 fn poll_read (
106103 mut self : Pin < & mut Self > ,
107- cx : & mut std :: task :: Context < ' _ > ,
104+ cx : & mut Context < ' _ > ,
108105 buf : & mut io:: ReadBuf < ' _ > ,
109106 ) -> io:: Poll < ( ) > {
110107 Pin :: new ( & mut self . 0 ) . poll_read ( cx, buf)
@@ -113,30 +110,26 @@ impl<I: io::AsyncRead + io::AsyncWrite + Unpin> io::AsyncRead for ClientIo<I> {
113110
114111impl < I : io:: AsyncRead + io:: AsyncWrite + Unpin > io:: AsyncWrite for ClientIo < I > {
115112 #[ inline]
116- fn poll_flush ( mut self : Pin < & mut Self > , cx : & mut std :: task :: Context < ' _ > ) -> io:: Poll < ( ) > {
113+ fn poll_flush ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> io:: Poll < ( ) > {
117114 Pin :: new ( & mut self . 0 ) . poll_flush ( cx)
118115 }
119116
120117 #[ inline]
121- fn poll_shutdown ( mut self : Pin < & mut Self > , cx : & mut std :: task :: Context < ' _ > ) -> io:: Poll < ( ) > {
118+ fn poll_shutdown ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> io:: Poll < ( ) > {
122119 Pin :: new ( & mut self . 0 ) . poll_shutdown ( cx)
123120 }
124121
125122 #[ inline]
126- fn poll_write (
127- mut self : Pin < & mut Self > ,
128- cx : & mut std:: task:: Context < ' _ > ,
129- buf : & [ u8 ] ,
130- ) -> io:: Poll < usize > {
123+ fn poll_write ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > , buf : & [ u8 ] ) -> io:: Poll < usize > {
131124 Pin :: new ( & mut self . 0 ) . poll_write ( cx, buf)
132125 }
133126
134127 #[ inline]
135128 fn poll_write_vectored (
136129 mut self : Pin < & mut Self > ,
137- cx : & mut std :: task :: Context < ' _ > ,
130+ cx : & mut Context < ' _ > ,
138131 bufs : & [ io:: IoSlice < ' _ > ] ,
139- ) -> std :: task :: Poll < Result < usize , std :: io :: Error > > {
132+ ) -> io :: Poll < usize > {
140133 Pin :: new ( & mut self . 0 ) . poll_write_vectored ( cx, bufs)
141134 }
142135
0 commit comments