X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fjpeg.rs;h=693ead48dd409ba2b8d915cbc1fa2d57f07588ab;hp=099aff9633e21c4e5653e0b9f9d141a50a9f5e74;hb=cc0a023d906149db2f406d5596cd400e6a118ce2;hpb=ca7351dc7cad5ac1f8e83e9de60134fb3f4dbf63 diff --git a/nihav-commonfmt/src/codecs/jpeg.rs b/nihav-commonfmt/src/codecs/jpeg.rs index 099aff9..693ead4 100644 --- a/nihav-commonfmt/src/codecs/jpeg.rs +++ b/nihav-commonfmt/src/codecs/jpeg.rs @@ -63,6 +63,7 @@ fn idct_row(row: &mut [i16]) { } #[allow(clippy::erasing_op)] +#[allow(clippy::identity_op)] fn idct_col(blk: &mut [i16; 64], off: usize) { let in0 = ((i32::from(blk[off + 0*8])) << 8) + (1 << (COL_SHIFT - 1)); let in1 = (i32::from(blk[off + 4*8])) << 8; @@ -236,6 +237,7 @@ impl JPEGDecoder { self.depth = 0; } + #[allow(clippy::many_single_char_names)] fn parse_sof(&mut self, br: &mut ByteReader) -> DecoderResult { validate!(self.width == 0);