File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ impl<R: Read + Unpin> Read for ChunkedDecoder<R> {
222222 }
223223 }
224224 State :: TrailerSending ( ref mut fut) => {
225- let _ = ready ! ( Pin :: new( fut) . poll( cx) ) ;
225+ ready ! ( Pin :: new( fut) . poll( cx) ) ;
226226 this. state = State :: Done ;
227227 }
228228 State :: Done => return Poll :: Ready ( Ok ( 0 ) ) ,
Original file line number Diff line number Diff line change @@ -375,21 +375,21 @@ impl Display for HttpDate {
375375 buf[ 0 ] = week_day[ 0 ] ;
376376 buf[ 1 ] = week_day[ 1 ] ;
377377 buf[ 2 ] = week_day[ 2 ] ;
378- buf[ 5 ] = b'0' + ( self . day / 10 ) as u8 ;
379- buf[ 6 ] = b'0' + ( self . day % 10 ) as u8 ;
378+ buf[ 5 ] = b'0' + ( self . day / 10 ) ;
379+ buf[ 6 ] = b'0' + ( self . day % 10 ) ;
380380 buf[ 8 ] = month[ 0 ] ;
381381 buf[ 9 ] = month[ 1 ] ;
382382 buf[ 10 ] = month[ 2 ] ;
383383 buf[ 12 ] = b'0' + ( self . year / 1000 ) as u8 ;
384384 buf[ 13 ] = b'0' + ( self . year / 100 % 10 ) as u8 ;
385385 buf[ 14 ] = b'0' + ( self . year / 10 % 10 ) as u8 ;
386386 buf[ 15 ] = b'0' + ( self . year % 10 ) as u8 ;
387- buf[ 17 ] = b'0' + ( self . hour / 10 ) as u8 ;
388- buf[ 18 ] = b'0' + ( self . hour % 10 ) as u8 ;
389- buf[ 20 ] = b'0' + ( self . minute / 10 ) as u8 ;
390- buf[ 21 ] = b'0' + ( self . minute % 10 ) as u8 ;
391- buf[ 23 ] = b'0' + ( self . second / 10 ) as u8 ;
392- buf[ 24 ] = b'0' + ( self . second % 10 ) as u8 ;
387+ buf[ 17 ] = b'0' + ( self . hour / 10 ) ;
388+ buf[ 18 ] = b'0' + ( self . hour % 10 ) ;
389+ buf[ 20 ] = b'0' + ( self . minute / 10 ) ;
390+ buf[ 21 ] = b'0' + ( self . minute % 10 ) ;
391+ buf[ 23 ] = b'0' + ( self . second / 10 ) ;
392+ buf[ 24 ] = b'0' + ( self . second % 10 ) ;
393393 f. write_str ( from_utf8 ( & buf[ ..] ) . unwrap ( ) )
394394 }
395395}
You can’t perform that action at this time.
0 commit comments