Skip to content

Commit 1fb1c0e

Browse files
committed
Clippy: allow false positive needless_range_loop
1 parent 59d48e4 commit 1fb1c0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codecs/dxt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ fn alpha_table_dxt5(alpha0: u8, alpha1: u8) -> [u8; 8] {
196196

197197
/// decodes an 8-byte dxt color block into the RGB channels of a 16xRGB or 16xRGBA block.
198198
/// 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
199200
fn decode_dxt_colors(source: &[u8], dest: &mut [u8], is_dxt1: bool) {
200201
// sanity checks, also enable the compiler to elide all following bound checks
201202
assert!(source.len() == 8 && (dest.len() == 48 || dest.len() == 64));

0 commit comments

Comments
 (0)