Skip to content

Commit b0e0751

Browse files
committed
fix: clippy chunks_exact_to_as_chunks in osd.rs
1 parent a182014 commit b0e0751

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/d3d9/osd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ unsafe fn render_text_bitmap(text: &str, width: u32, height: u32) -> Option<Vec<
452452
let len = (width * height * 4) as usize;
453453
let mut out = vec![0u8; len];
454454
ptr::copy_nonoverlapping(bits.cast::<u8>(), out.as_mut_ptr(), len);
455-
for pixel in out.chunks_exact_mut(4) {
455+
for pixel in out.as_chunks_mut::<4>().0 {
456456
let alpha = pixel[0].max(pixel[1]).max(pixel[2]);
457457
if alpha == 0 {
458458
pixel[0] = 0;

0 commit comments

Comments
 (0)