@@ -136,7 +136,7 @@ pub trait Delegate {
136136 /// [exponential backoff algorithm](http://en.wikipedia.org/wiki/Exponential_backoff).
137137 ///
138138 /// Return retry information.
139- fn http_error ( & mut self , & hyper:: HttpError ) -> Retry {
139+ fn http_error ( & mut self , & hyper:: Error ) -> Retry {
140140 Retry :: Abort
141141 }
142142
@@ -248,7 +248,7 @@ impl Delegate for DefaultDelegate {}
248248#[ derive( Debug ) ]
249249pub enum Error {
250250 /// The http connection failed
251- HttpError ( hyper:: HttpError ) ,
251+ HttpError ( hyper:: Error ) ,
252252
253253 /// An attempt was made to upload a resource with size stored in field `.0`
254254 /// even though the maximum upload size is what is stored in field `.1`.
@@ -587,7 +587,7 @@ pub struct ResumableUploadHelper<'a, A: 'a> {
587587impl < ' a , A > ResumableUploadHelper < ' a , A >
588588 where A : oauth2:: GetToken {
589589
590- fn query_transfer_status ( & mut self ) -> std:: result:: Result < u64 , hyper:: HttpResult < hyper:: client:: Response > > {
590+ fn query_transfer_status ( & mut self ) -> std:: result:: Result < u64 , hyper:: Result < hyper:: client:: Response > > {
591591 loop {
592592 match self . client . post ( self . url )
593593 . header ( UserAgent ( self . user_agent . to_string ( ) ) )
@@ -623,7 +623,7 @@ impl<'a, A> ResumableUploadHelper<'a, A>
623623 /// returns None if operation was cancelled by delegate, or the HttpResult.
624624 /// It can be that we return the result just because we didn't understand the status code -
625625 /// caller should check for status himself before assuming it's OK to use
626- pub fn upload ( & mut self ) -> Option < hyper:: HttpResult < hyper:: client:: Response > > {
626+ pub fn upload ( & mut self ) -> Option < hyper:: Result < hyper:: client:: Response > > {
627627 let mut start = match self . start_at {
628628 Some ( s) => s,
629629 None => match self . query_transfer_status ( ) {
0 commit comments