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 @@ -120,7 +120,7 @@ impl GzHeaderParser {
120
120
}
121
121
}
122
122
123
- fn parse < ' a , R : Read > ( & mut self , r : & ' a mut R ) -> Result < ( ) > {
123
+ fn parse < ' a , R : BufRead > ( & mut self , r : & ' a mut R ) -> Result < ( ) > {
124
124
loop {
125
125
match & mut self . state {
126
126
GzHeaderState :: Start ( count, buffer) => {
@@ -253,7 +253,7 @@ fn read_into<R: Read>(r: &mut R, buffer: &mut [u8]) -> Result<usize> {
253
253
}
254
254
255
255
// Read `r` up to the first nul byte, pushing non-nul bytes to `buffer`.
256
- fn read_to_nul < R : Read > ( r : & mut R , buffer : & mut Vec < u8 > ) -> Result < ( ) > {
256
+ fn read_to_nul < R : BufRead > ( r : & mut R , buffer : & mut Vec < u8 > ) -> Result < ( ) > {
257
257
let mut bytes = r. bytes ( ) ;
258
258
loop {
259
259
match bytes. next ( ) . transpose ( ) ? {
You can’t perform that action at this time.
0 commit comments