Chore: clear two workspace Clippy errors #355
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/355"
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 Marvisak/VIctory. Originally posted by enzoduarte1 on 2026-11-24T02:34:02Z.
What
Two pre-existing Clippy errors made
cargo clippy --workspace --all-targets -- -D warningsfail onmain:crates/victory-gpu/src/host.rs: the WARP-adapter test cast anIDXGIAdaptertoIDXGIAdapter1in a separateunsafeblock 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 assignedcbafterPERFORMANCE_INFORMATION::default(), which Clippy flags. Movedcbinto the struct literal.No runtime behaviour changes.
Tested
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 --checkon the two changed files reports no diff around the changed lines; the files have unrelated formatting diffs on unmodifiedmainwith this toolchain.cargo test -p victory-loader --test load_probe. Its fixture passes MSVC's/DELAYLOADlink flag, which MinGW's linker rejects here; the same failure occurs on unmodifiedmain.cargo fmt --all --checkalso still reports pre-existing diffs elsewhere, so I did not reformat unrelated files.Checklist
cargo fmt,cargo clippy --workspace --all-targetsandcargo test --workspacepass — Clippy now passes with-D warnings; the loader integration test and full-tree formatting remain blocked by the toolchain limitations above.cargo xtask policypasses. The change adds no game files or data taken from them (docs/asset-policy.md).Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:26:15Z.
Tested PR #355 at head
40c127cbb3f43eabf42eb2576c767b6c98f82647(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at40c127cbb3f43eabf42eb2576c767b6c98f82647.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
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:04:08Z.
Review: APPROVED
Tested
40c127con Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed).host.rs: a safety comment only, and an accurate one:EnumWarpAdapterhands back a DXGI adapter, and every DXGI adapter implementsIDXGIAdapter1.xmem.rs: the same struct-update change as #405, byte for byte. Whichever lands second becomes a no-op for that hunk. Git merges the two cleanly; I checked that on a branch that already has #405.No issues found.
AI-assisted (Claude Code).