Skip to content

Commit 1c6fee9

Browse files
committed
Apply clippy lints
1 parent 3274ff2 commit 1c6fee9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/decoder/stream.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl<R: Read> Read for PackBitsReader<R> {
277277

278278
#[cfg(feature = "fax")]
279279
pub struct Group4Reader<R: Read> {
280-
decoder: fax::decoder::Group4Decoder<io::Bytes<io::Take<R>>>,
280+
decoder: fax::decoder::Group4Decoder<io::Bytes<io::BufReader<io::Take<R>>>>,
281281
line_buf: io::Cursor<Vec<u8>>,
282282
height: u16,
283283
width: u16,
@@ -296,12 +296,12 @@ impl<R: Read> Group4Reader<R> {
296296

297297
Ok(Self {
298298
decoder: fax::decoder::Group4Decoder::new(
299-
reader.take(compressed_length).bytes(),
299+
io::BufReader::new(reader.take(compressed_length)).bytes(),
300300
width,
301301
)?,
302302
line_buf: io::Cursor::new(Vec::with_capacity(width.into())),
303-
width: width,
304-
height: height,
303+
width,
304+
height,
305305
y: 0,
306306
})
307307
}

0 commit comments

Comments
 (0)