@@ -565,13 +565,13 @@ impl<'a> From<&'a [u8]> for Body {
565565}
566566
567567impl AsyncRead for Body {
568- #[ allow( missing_doc_code_examples) ]
568+ #[ allow( rustdoc :: missing_doc_code_examples) ]
569569 fn poll_read (
570570 mut self : Pin < & mut Self > ,
571571 cx : & mut Context < ' _ > ,
572572 buf : & mut [ u8 ] ,
573573 ) -> Poll < io:: Result < usize > > {
574- let mut buf = match self . length {
574+ let buf = match self . length {
575575 None => buf,
576576 Some ( length) if length == self . bytes_read => return Poll :: Ready ( Ok ( 0 ) ) ,
577577 Some ( length) => {
@@ -582,14 +582,14 @@ impl AsyncRead for Body {
582582 }
583583 } ;
584584
585- let bytes = ready ! ( Pin :: new( & mut self . reader) . poll_read( cx, & mut buf) ) ?;
585+ let bytes = ready ! ( Pin :: new( & mut self . reader) . poll_read( cx, buf) ) ?;
586586 self . bytes_read += bytes as u64 ;
587587 Poll :: Ready ( Ok ( bytes) )
588588 }
589589}
590590
591591impl AsyncBufRead for Body {
592- #[ allow( missing_doc_code_examples) ]
592+ #[ allow( rustdoc :: missing_doc_code_examples) ]
593593 fn poll_fill_buf ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < & ' _ [ u8 ] > > {
594594 self . project ( ) . reader . poll_fill_buf ( cx)
595595 }
@@ -632,6 +632,7 @@ mod test {
632632 #[ derive( Debug , Deserialize ) ]
633633 #[ serde( crate = "serde_crate" ) ]
634634 struct Foo {
635+ #[ allow( dead_code) ]
635636 inner : String ,
636637 }
637638 let body = Body :: empty ( ) ;
@@ -644,6 +645,7 @@ mod test {
644645 #[ derive( Debug , Deserialize ) ]
645646 #[ serde( crate = "serde_crate" ) ]
646647 struct Foo {
648+ #[ allow( dead_code) ]
647649 inner : String ,
648650 }
649651 let body = Body :: empty ( ) ;
0 commit comments