File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl GzHeaderParser {
115115 }
116116 }
117117
118- fn parse < ' a , R : Read > ( & mut self , r : & ' a mut R ) -> Result < ( ) > {
118+ fn parse < ' a , R : BufRead > ( & mut self , r : & ' a mut R ) -> Result < ( ) > {
119119 loop {
120120 match & mut self . state {
121121 GzHeaderState :: Start ( count, buffer) => {
@@ -248,7 +248,7 @@ fn read_into<R: Read>(r: &mut R, buffer: &mut [u8]) -> Result<usize> {
248248}
249249
250250// Read `r` up to the first nul byte, pushing non-nul bytes to `buffer`.
251- fn read_to_nul < R : Read > ( r : & mut R , buffer : & mut Vec < u8 > ) -> Result < ( ) > {
251+ fn read_to_nul < R : BufRead > ( r : & mut R , buffer : & mut Vec < u8 > ) -> Result < ( ) > {
252252 let mut bytes = r. bytes ( ) ;
253253 loop {
254254 match bytes. next ( ) . transpose ( ) ? {
You can’t perform that action at this time.
0 commit comments