Skip to content

Commit 0699f7e

Browse files
committed
Change imports
1 parent fa8663f commit 0699f7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use error::{Error, Result};
33
use huffman::{HuffmanTable, HuffmanTableClass};
44
use marker::Marker;
55
use marker::Marker::*;
6-
use std::io::{Read, copy, sink, ErrorKind};
6+
use std::io::{self, Read};
77
use 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> {
9595
fn 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
}

0 commit comments

Comments
 (0)