Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #115

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/platform/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@
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;
Expand Down Expand Up @@ -676,12 +675,12 @@
#[test]
fn check_win_to_rgba_conversion() {
let mut data = DATA;
unsafe { win_to_rgba(&mut data) };

Check warning on line 678 in src/platform/windows.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest)

unused return value of `win_to_rgba` that must be used

Check warning on line 678 in src/platform/windows.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest)

unused return value of `win_to_rgba` that must be used
}

#[test]
fn check_rgba_to_win_conversion() {
let mut data = DATA;
unsafe { rgba_to_win(&mut data) };

Check warning on line 684 in src/platform/windows.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest)

unused return value of `rgba_to_win` that must be used

Check warning on line 684 in src/platform/windows.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest)

unused return value of `rgba_to_win` that must be used
}
}
Loading