From 7241970ce358c83631406587c423ea997a1a03df Mon Sep 17 00:00:00 2001 From: daxpedda Date: Thu, 5 Oct 2023 20:48:28 +0200 Subject: [PATCH] Fix CI --- src/platform/windows.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 39bdc2e..ba124c3 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -273,8 +273,7 @@ fn flip_v(image: ImageData) -> ImageData<'static> { let mut bytes = image.bytes.into_owned(); let rowsize = w * 4; // each pixel is 4 bytes - let mut tmp_a = Vec::new(); - tmp_a.resize(rowsize, 0); + let mut tmp_a = vec![0; rowsize]; // I believe this could be done safely with `as_chunks_mut`, but that's not stable yet for a_row_id in 0..(h / 2) { let b_row_id = h - a_row_id - 1;