Fix the Clippy failure in the small-mip texture test #3
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 · openThe 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 warningspasses.cargo test --locked -p victory-formats --libreports 41 passed and 5 ignored. The change addresses the first reported failure; the Windows workspace job still needs to run.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.