File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use error::{Error, Result};
33use huffman:: { HuffmanTable , HuffmanTableClass } ;
44use marker:: Marker ;
55use marker:: Marker :: * ;
6- use std:: io:: { Read , copy , sink , ErrorKind } ;
6+ use std:: io:: { self , Read } ;
77use std:: ops:: Range ;
88
99#[ derive( Clone , Copy , Debug , PartialEq ) ]
@@ -95,9 +95,9 @@ fn read_length<R: Read>(reader: &mut R, marker: Marker) -> Result<usize> {
9595fn skip_bytes < R : Read > ( reader : & mut R , length : usize ) -> Result < ( ) > {
9696 let length = length as u64 ;
9797 let to_skip = & mut reader. by_ref ( ) . take ( length) ;
98- let copied = copy ( to_skip, & mut sink ( ) ) ?;
98+ let copied = io :: copy ( to_skip, & mut io :: sink ( ) ) ?;
9999 if copied < length {
100- Err ( Error :: Io ( ErrorKind :: UnexpectedEof . into ( ) ) )
100+ Err ( Error :: Io ( io :: ErrorKind :: UnexpectedEof . into ( ) ) )
101101 } else {
102102 Ok ( ( ) )
103103 }
You can’t perform that action at this time.
0 commit comments