We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d48e4 commit 1fb1c0eCopy full SHA for 1fb1c0e
src/codecs/dxt.rs
@@ -196,6 +196,7 @@ fn alpha_table_dxt5(alpha0: u8, alpha1: u8) -> [u8; 8] {
196
197
/// decodes an 8-byte dxt color block into the RGB channels of a 16xRGB or 16xRGBA block.
198
/// source should have a length of 8, dest a length of 48 (RGB) or 64 (RGBA)
199
+#[allow(clippy::needless_range_loop)] // False positive, the 0..3 loop is not an enumerate
200
fn decode_dxt_colors(source: &[u8], dest: &mut [u8], is_dxt1: bool) {
201
// sanity checks, also enable the compiler to elide all following bound checks
202
assert!(source.len() == 8 && (dest.len() == 48 || dest.len() == 64));
0 commit comments