Fix workspace Clippy -D warnings failures across CI targets #140

Merged
mattkajorinc merged 1 commit from upstream-pr/140 into main 2026-11-26 08:17:49 +00:00
mattkajorinc commented 2026-11-26 07:05:55 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by mattkajorinc on 2026-11-26T07:05:55Z.


Summary

  • Fixes the clippy::precedence failure blocking main CI (Run #68) at crates/victory-formats/src/texture.rs:1346 (((i * 7) >> 3)).
  • Resolves the remaining Clippy -D warnings and compiler warnings uncovered across the workspace under the pinned 1.98.1 toolchain for both default and --all-features builds:
    • Precedence & hex grouping: crates/victory-gpu/src/texture.rs, crates/victory-hle/src/modules/dstorage.rs, crates/victory-gpu/src/port.rs, crates/victory-gpu/src/queue.rs.
    • .is_multiple_of(...) & style lints: crates/victory-gpu/src/{host/send.rs, host/upq.rs, shadow.rs, watch.rs, land/tests.rs, titlewrite/decode.rs, draw.rs, copystat.rs, host.rs, descriptor.rs, pipeline/known.rs, replay/play.rs, replay/play/diverge.rs, replay/play/merge.rs}, crates/victory-hle/src/modules/dstorage.rs, apps/victory/src/warm.rs.
    • Annotations, visibility & unused/feature-gated warnings: crates/victory-loader/src/write_sites.rs, crates/victory-gpu/src/{book.rs, draw.rs, host.rs, host/indirects.rs, indirect.rs, land.rs, list/thin.rs, replay/play/pixel.rs, resource.rs}, apps/victory/src/main.rs.

Verification

  • cargo clippy --workspace --all-targets --locked -- -D warnings (passed, 0 warnings)
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings (passed, 0 warnings)
  • cargo run --locked -p xtask -- policy (asset policy: 249 files ok)
  • cargo test -p xtask -p victory-formats -p victory-gpu -p victory-loader -p victory --locked (plus victory-gpu --lib --all-features; in victory-hle --lib, 149 passed with 2 tests skipped due to sandbox socket/hardlink restrictions)
<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6621405770 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/140). Originally posted by [mattkajorinc](https://github.com/mattkajorinc) on 2026-11-26T07:05:55Z. --- ## Summary - Fixes the `clippy::precedence` failure blocking `main` CI (`Run #68`) at `crates/victory-formats/src/texture.rs:1346` (`((i * 7) >> 3)`). - Resolves the remaining Clippy `-D warnings` and compiler warnings uncovered across the workspace under the pinned `1.98.1` toolchain for both default and `--all-features` builds: - **Precedence & hex grouping:** `crates/victory-gpu/src/texture.rs`, `crates/victory-hle/src/modules/dstorage.rs`, `crates/victory-gpu/src/port.rs`, `crates/victory-gpu/src/queue.rs`. - **`.is_multiple_of(...)` & style lints:** `crates/victory-gpu/src/{host/send.rs, host/upq.rs, shadow.rs, watch.rs, land/tests.rs, titlewrite/decode.rs, draw.rs, copystat.rs, host.rs, descriptor.rs, pipeline/known.rs, replay/play.rs, replay/play/diverge.rs, replay/play/merge.rs}`, `crates/victory-hle/src/modules/dstorage.rs`, `apps/victory/src/warm.rs`. - **Annotations, visibility & unused/feature-gated warnings:** `crates/victory-loader/src/write_sites.rs`, `crates/victory-gpu/src/{book.rs, draw.rs, host.rs, host/indirects.rs, indirect.rs, land.rs, list/thin.rs, replay/play/pixel.rs, resource.rs}`, `apps/victory/src/main.rs`. ## Verification - `cargo clippy --workspace --all-targets --locked -- -D warnings` (passed, 0 warnings) - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` (passed, 0 warnings) - `cargo run --locked -p xtask -- policy` (`asset policy: 249 files ok`) - `cargo test -p xtask -p victory-formats -p victory-gpu -p victory-loader -p victory --locked` (plus `victory-gpu --lib --all-features`; in `victory-hle --lib`, 149 passed with 2 tests skipped due to sandbox socket/hardlink restrictions)
avatarmanz commented 2026-11-26 07:56:27 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:56:27Z.


Merged into main in the next push (tests pass); thanks.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7186002927 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/140#issuecomment-7186002927). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:56:27Z. --- Merged into main in the next push (tests pass); thanks.
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
avatarmanz/VIctory-7900XTX!140
No description provided.