Chore: clear two workspace Clippy errors #355

Manually merged
github merged 1 commit from gh-pr/355/head into gh-pr/355/base 2026-11-26 04:00:27 +00:00
Owner

@⁠enzoduarte1 on GitHub · 2026-11-24 02:34 UTC · original
enzoduarte1:clippy/clean-workspace-lints → main · +6 −2 · 2 files · 1 commits · merged 2026-11-24 08:02 UTC

What

Two pre-existing Clippy errors made cargo clippy --workspace --all-targets -- -D warnings fail on main:

  • crates/victory-gpu/src/host.rs: the WARP-adapter test cast an IDXGIAdapter to IDXGIAdapter1 in a separate unsafe block without its own safety comment. Added the missing comment and the reason the cast is valid.
  • crates/victory-hle/src/modules/xmem.rs: the commit-limit reporter assigned cb after PERFORMANCE_INFORMATION::default(), which Clippy flags. Moved cb into the struct literal.

No runtime behaviour changes.

Tested

  • Windows 11, Rust 1.98.1, x86_64-pc-windows-gnu (this machine has no MSVC linker).
  • cargo clippy --workspace --all-targets -- -D warnings: clean; both previous errors are gone.
  • cargo test --workspace --exclude victory-loader: all suites passed.
  • cargo xtask policy: 151 files ok. No game files or data taken from them were added.
  • git diff --check: clean. rustfmt --check on the two changed files reports no diff around the changed lines; the files have unrelated formatting diffs on unmodified main with this toolchain.
  • Not tested: cargo test -p victory-loader --test load_probe. Its fixture passes MSVC's /DELAYLOAD link flag, which MinGW's linker rejects here; the same failure occurs on unmodified main. cargo fmt --all --check also still reports pre-existing diffs elsewhere, so I did not reformat unrelated files.

Checklist

  • cargo fmt, cargo clippy --workspace --all-targets and cargo test --workspace pass — Clippy now passes with -D warnings; the loader integration test and full-tree formatting remain blocked by the toolchain limitations above.
  • cargo xtask policy passes. The change adds no game files or data taken from them (docs/asset-policy.md).
  • If an AI tool wrote part of this change, the description says so: an AI tool assisted with the edits; I reviewed and ran the checks.
**@⁠enzoduarte1** on GitHub · 2026-11-24 02:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/355) `enzoduarte1:clippy/clean-workspace-lints` → `main` · +6 −2 · 2 files · 1 commits · merged 2026-11-24 08:02 UTC ## What Two pre-existing Clippy errors made `cargo clippy --workspace --all-targets -- -D warnings` fail on `main`: - `crates/victory-gpu/src/host.rs`: the WARP-adapter test cast an `IDXGIAdapter` to `IDXGIAdapter1` in a separate `unsafe` block without its own safety comment. Added the missing comment and the reason the cast is valid. - `crates/victory-hle/src/modules/xmem.rs`: the commit-limit reporter assigned `cb` after `PERFORMANCE_INFORMATION::default()`, which Clippy flags. Moved `cb` into the struct literal. No runtime behaviour changes. ## Tested - Windows 11, Rust 1.98.1, `x86_64-pc-windows-gnu` (this machine has no MSVC linker). - `cargo clippy --workspace --all-targets -- -D warnings`: clean; both previous errors are gone. - `cargo test --workspace --exclude victory-loader`: all suites passed. - `cargo xtask policy`: 151 files ok. No game files or data taken from them were added. - `git diff --check`: clean. `rustfmt --check` on the two changed files reports no diff around the changed lines; the files have unrelated formatting diffs on unmodified `main` with this toolchain. - Not tested: `cargo test -p victory-loader --test load_probe`. Its fixture passes MSVC's `/DELAYLOAD` link flag, which MinGW's linker rejects here; the same failure occurs on unmodified `main`. `cargo fmt --all --check` also still reports pre-existing diffs elsewhere, so I did not reformat unrelated files. ## Checklist - [ ] `cargo fmt`, `cargo clippy --workspace --all-targets` and `cargo test --workspace` pass — Clippy now passes with `-D warnings`; the loader integration test and full-tree formatting remain blocked by the toolchain limitations above. - [x] `cargo xtask policy` passes. The change adds no game files or data taken from them (`docs/asset-policy.md`). - [x] If an AI tool wrote part of this change, the description says so: an AI tool assisted with the edits; I reviewed and ran the checks.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:26 +00:00
github manually merged commit 40c127cbb3 into gh-pr/355/base 2026-11-26 04:00:27 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-24 04:26 UTC · original

Tested PR #355 at head 40c127cbb3f43eabf42eb2576c767b6c98f82647 (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at 40c127cbb3f43eabf42eb2576c767b6c98f82647.

  • cargo clippy --locked -p victory-gpu -p victory-hle --all-targets -- -D warnings — passed with warnings denied.

Behavior covered: Runs Clippy with warnings denied for all targets in the GPU and HLE packages, covering both lint fixes.
Code: crates/victory-gpu/src/host.rs, crates/victory-hle/src/modules/xmem.rs

**@⁠jeremygold02** on GitHub · 2026-11-24 04:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/355#issuecomment-7122018072) Tested PR #355 at head `40c127cbb3f43eabf42eb2576c767b6c98f82647` (state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at `40c127cbb3f43eabf42eb2576c767b6c98f82647`. - `cargo clippy --locked -p victory-gpu -p victory-hle --all-targets -- -D warnings` — passed with warnings denied. Behavior covered: Runs Clippy with warnings denied for all targets in the GPU and HLE packages, covering both lint fixes. Code: [crates/victory-gpu/src/host.rs](https://github.com/Marvisak/VIctory/blob/40c127cbb3f43eabf42eb2576c767b6c98f82647/crates/victory-gpu/src/host.rs), [crates/victory-hle/src/modules/xmem.rs](https://github.com/Marvisak/VIctory/blob/40c127cbb3f43eabf42eb2576c767b6c98f82647/crates/victory-hle/src/modules/xmem.rs)
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!355
No description provided.