Fix the three clippy warnings that fail the diagnostics build #362

Open
kilolimaVI wants to merge 1 commit from upstream-pr/362 into main
kilolimaVI commented 2026-11-26 19:01:43 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by kilolimaVI on 2026-11-26T19:01:43Z.


CI's "Clippy, diagnostics build" step (cargo clippy --workspace --all-targets --all-features --locked -- -D warnings) fails on main with three warnings:

  • missing_transmute_annotations x2 in crates/victory-loader/src/descriptor_sites.rs:277: annotated as transmute::<usize, F>
  • unnecessary_mut_passed in crates/victory-gpu/src/watch.rs:3626: open takes &Guards

No behaviour change. Checked on Windows 11 with the pinned toolchain (1.98.1): clippy is clean with --all-features.

AI use: written with Claude, reviewed and tested by me.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5515682284 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/362). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-26T19:01:43Z. --- CI's "Clippy, diagnostics build" step (`cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`) fails on main with three warnings: - `missing_transmute_annotations` x2 in `crates/victory-loader/src/descriptor_sites.rs:277`: annotated as `transmute::<usize, F>` - `unnecessary_mut_passed` in `crates/victory-gpu/src/watch.rs:3626`: `open` takes `&Guards` No behaviour change. Checked on Windows 11 with the pinned toolchain (1.98.1): clippy is clean with --all-features. AI use: written with Claude, reviewed and tested by me.
kilolimaVI commented 2026-11-26 19:06:26 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by kilolimaVI on 2026-11-26T19:06:26Z.


Overlaps #169 on descriptor_sites.rs. This one is against current main and also covers the watch.rs warning, so the diagnostics clippy step passes as of today.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7201201916 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/362#issuecomment-7201201916). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-26T19:06:26Z. --- Overlaps #169 on descriptor_sites.rs. This one is against current main and also covers the watch.rs warning, so the diagnostics clippy step passes as of today.
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/362:upstream-pr/362'
git switch 'upstream-pr/362'

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/362'
git switch 'upstream-pr/362'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/362'
git switch 'upstream-pr/362'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/362'
git switch 'main'
git merge --squash 'upstream-pr/362'
git switch 'main'
git merge --ff-only 'upstream-pr/362'
git switch 'main'
git merge 'upstream-pr/362'
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
avatarmanz/VIctory-7900XTX!362
No description provided.