Fix strict Clippy warnings in victory-gpu #8

Open
TaynanGT wants to merge 1 commit from upstream-pr/8 into main
TaynanGT commented 2026-11-26 07:53:24 +00:00 (Migrated from git.gtahub.st)

Imported from codec-d/cool_fox. Originally posted by TaynanGT on 2026-11-26T07:53:24Z.


@⁠TaynanGT on GitHub · 2026-11-26 07:52 UTC · original
TaynanGT:contrib/gpu-clippy → main · +47 −30 · 20 files · 1 commits · open

After applying #3 locally, the next -D warnings failures were in victory-gpu. This change gates diagnostics-only helpers, fixes lint warnings in the library and tests, and keeps submission flights inline to avoid adding a heap allocation per queued flight. The descriptor heap stays owned for the lifetime of its cached handle.

Both checks passed on Windows with the pinned Rust toolchain.

cargo clippy -p victory-gpu --all-targets --locked -- -D warnings
cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings

The changes in #3 are separate from this branch.

<!-- greyfinch-sync:codec-d/cool_fox:issue:8089 --> Imported from [codec-d/cool_fox](https://git.gtahub.st/github/codec-d--cool_fox/pulls/8). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-26T07:53:24Z. --- **@⁠TaynanGT** on GitHub · 2026-11-26 07:52 UTC · [original](https://github.com/codec-d/cool_fox/pull/8) `TaynanGT:contrib/gpu-clippy` → `main` · +47 −30 · 20 files · 1 commits · open After applying #3 locally, the next `-D warnings` failures were in `victory-gpu`. This change gates diagnostics-only helpers, fixes lint warnings in the library and tests, and keeps submission flights inline to avoid adding a heap allocation per queued flight. The descriptor heap stays owned for the lifetime of its cached handle. Both checks passed on Windows with the pinned Rust toolchain. ```text cargo clippy -p victory-gpu --all-targets --locked -- -D warnings cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings ``` The changes in #3 are separate from this branch.
chatgpt-codex-connector[bot] commented 2026-11-26 07:53:27 +00:00 (Migrated from git.gtahub.st)

Imported from codec-d/cool_fox. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T07:53:27Z.


@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 07:52 UTC · original · edited 2026-11-26 07:55 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T07:55:03.041693Z a2941b0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:codec-d/cool_fox:comment:130428 --> Imported from [codec-d/cool_fox](https://git.gtahub.st/github/codec-d--cool_fox/pulls/8#issuecomment-130428). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-26T07:53:27Z. --- **@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 07:52 UTC · [original](https://github.com/codec-d/cool_fox/pull/8#issuecomment-7185937750) · edited 2026-11-26 07:55 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"a2941b07ea1ace37de30edc0d70146485363a459","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-26T07:55:03.041693Z">2026-11-26T07:55:03.041693Z</relative-time> | `a2941b0` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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/8:upstream-pr/8'
git switch 'upstream-pr/8'

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