Fix the Clippy failure in the small-mip texture test #3

Open
Yoshi-233 wants to merge 1 commit from upstream-pr/3 into main
Yoshi-233 commented 2026-11-26 07:48:10 +00:00 (Migrated from git.gtahub.st)

Imported from codec-d/cool_fox. Originally posted by Yoshi-233 on 2026-11-26T07:48:10Z.


@⁠Yoshi-233 on GitHub · 2026-11-26 07:43 UTC · original
Yoshi-233:fix/texture-test-precedence → main · +1 −1 · 1 files · 1 commits · open

The Windows CI run on f4b48ad stops before tests because Clippy rejects the sample byte pattern in the small-mip texture test. Parenthesize the multiplication so its precedence over the shift is explicit. The generated bytes stay the same.

I reproduced the diagnostic on Linux x86-64 with the pinned Rust 1.98.1. With this change, cargo clippy -p victory-formats --all-targets --locked -- -D warnings passes. cargo test --locked -p victory-formats --lib reports 41 passed and 5 ignored. The change addresses the first reported failure; the Windows workspace job still needs to run.

<!-- greyfinch-sync:codec-d/cool_fox:issue:8083 --> Imported from [codec-d/cool_fox](https://git.gtahub.st/github/codec-d--cool_fox/pulls/3). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-26T07:48:10Z. --- **@⁠Yoshi-233** on GitHub · 2026-11-26 07:43 UTC · [original](https://github.com/codec-d/cool_fox/pull/3) `Yoshi-233:fix/texture-test-precedence` → `main` · +1 −1 · 1 files · 1 commits · open The Windows [CI run on f4b48ad](https://github.com/codec-d/cool_fox/actions/runs/45771929231) stops before tests because Clippy rejects the sample byte pattern in the small-mip texture test. Parenthesize the multiplication so its precedence over the shift is explicit. The generated bytes stay the same. I reproduced the diagnostic on Linux x86-64 with the pinned Rust 1.98.1. With this change, `cargo clippy -p victory-formats --all-targets --locked -- -D warnings` passes. `cargo test --locked -p victory-formats --lib` reports 41 passed and 5 ignored. The change addresses the first reported failure; the Windows workspace job still needs to run.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3:upstream-pr/3'
git switch 'upstream-pr/3'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3'
git switch 'upstream-pr/3'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3'
git switch 'upstream-pr/3'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3'
git switch 'main'
git merge --squash 'upstream-pr/3'
git switch 'main'
git merge --ff-only 'upstream-pr/3'
git switch 'main'
git merge 'upstream-pr/3'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
codec-d/cool_fox!3
No description provided.