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 {
115
115
}
116
116
}
117
117
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 < ( ) > {
119
119
loop {
120
120
match & mut self . state {
121
121
GzHeaderState :: Start ( count, buffer) => {
@@ -248,7 +248,7 @@ fn read_into<R: Read>(r: &mut R, buffer: &mut [u8]) -> Result<usize> {
248
248
}
249
249
250
250
// 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 < ( ) > {
252
252
let mut bytes = r. bytes ( ) ;
253
253
loop {
254
254
match bytes. next ( ) . transpose ( ) ? {
You can’t perform that action at this time.
0 commit comments