Chore: clear two workspace Clippy errors #355
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!355
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/355/head"
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?
@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 UTCWhat
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).@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 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