@@ -140,7 +140,7 @@ struct ConnAdapter<C: NetworkConnector + Send>(C);
140140impl < C : NetworkConnector < Stream =S > + Send , S : NetworkStream + Send > NetworkConnector for ConnAdapter < C > {
141141 type Stream = Box < NetworkStream + Send > ;
142142 #[ inline]
143- fn connect ( & mut self , host : & str , port : u16 , scheme : & str )
143+ fn connect ( & self , host : & str , port : u16 , scheme : & str )
144144 -> :: Result < Box < NetworkStream + Send > > {
145145 Ok ( try!( self . 0 . connect ( host, port, scheme) ) . into ( ) )
146146 }
@@ -155,7 +155,7 @@ struct Connector(Box<NetworkConnector<Stream=Box<NetworkStream + Send>> + Send>)
155155impl NetworkConnector for Connector {
156156 type Stream = Box < NetworkStream + Send > ;
157157 #[ inline]
158- fn connect ( & mut self , host : & str , port : u16 , scheme : & str )
158+ fn connect ( & self , host : & str , port : u16 , scheme : & str )
159159 -> :: Result < Box < NetworkStream + Send > > {
160160 Ok ( try!( self . 0 . connect ( host, port, scheme) ) . into ( ) )
161161 }
@@ -170,7 +170,7 @@ impl NetworkConnector for Connector {
170170/// One of these will be built for you if you use one of the convenience
171171/// methods, such as `get()`, `post()`, etc.
172172pub struct RequestBuilder < ' a , U : IntoUrl > {
173- client : & ' a mut Client ,
173+ client : & ' a Client ,
174174 url : U ,
175175 headers : Option < Headers > ,
176176 method : Method ,
@@ -225,7 +225,7 @@ impl<'a, U: IntoUrl> RequestBuilder<'a, U> {
225225 } ;
226226
227227 loop {
228- let mut req = try!( Request :: with_connector ( method. clone ( ) , url. clone ( ) , & mut client. connector ) ) ;
228+ let mut req = try!( Request :: with_connector ( method. clone ( ) , url. clone ( ) , & client. connector ) ) ;
229229 headers. as_ref ( ) . map ( |headers| req. headers_mut ( ) . extend ( headers. iter ( ) ) ) ;
230230
231231 match ( can_have_body, body. as_ref ( ) ) {
0 commit comments