Apply clippy lints

This commit is contained in:
Aurelia Molzer committed 2025-08-31 01:26:05 +02:00
1 parent b5afb8cca4
commit 4a68feab5a
1 file changed
+4 -4
+4 -4
View File
@@ -277,7 +277,7 @@ impl<R: Read> Read for PackBitsReader<R> {
#[cfg(feature = "fax")] #[cfg(feature = "fax")]
pub struct Group4Reader<R: Read> { pub struct Group4Reader<R: Read> {
decoder: fax::decoder::Group4Decoder<io::Bytes<io::Take<R>>>, decoder: fax::decoder::Group4Decoder<io::Bytes<io::BufReader<io::Take<R>>>>,
line_buf: io::Cursor<Vec<u8>>, line_buf: io::Cursor<Vec<u8>>,
height: u16, height: u16,
width: u16, width: u16,
@@ -296,12 +296,12 @@ impl<R: Read> Group4Reader<R> {
Ok(Self { Ok(Self {
decoder: fax::decoder::Group4Decoder::new( decoder: fax::decoder::Group4Decoder::new(
reader.take(compressed_length).bytes(), io::BufReader::new(reader.take(compressed_length)).bytes(),
width, width,
)?, )?,
line_buf: io::Cursor::new(Vec::with_capacity(width.into())), line_buf: io::Cursor::new(Vec::with_capacity(width.into())),
width: width, width,
height: height, height,
y: 0, y: 0,
}) })
} }