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

Open
github-bot wants to merge 1 commit from github-bot/gh-3 into main AGit
Owner

@⁠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.

**@⁠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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:48:10 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3/head:github-bot/gh-3'
git switch 'github-bot/gh-3'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3'
git switch 'github-bot/gh-3'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3'
git switch 'github-bot/gh-3'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3'
git switch 'main'
git merge --squash 'github-bot/gh-3'
git switch 'main'
git merge --ff-only 'github-bot/gh-3'
git switch 'main'
git merge 'github-bot/gh-3'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.