Fix clippy field_reassign_with_default in xmem #405
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/405"
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 Marrqquess on 2026-11-24T02:58:14Z.
Initializes PERFORMANCE_INFORMATION with struct update syntax to silence clippy::field_reassign_with_default. No behavior change; cargo test --workspace passes.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T05:29:30Z.
Review: APPROVED
Tested
49f113bon Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed).The struct-update form gives the same value as
default()followed by settingcb, andinfostill has to bemutforK32GetPerformanceInfo(&mut info, …). There is no behaviour change, and it removes thefield_reassign_with_defaultwarning that other PRs (for example #449, #480) mention allowing by hand.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:34:08Z.
Thanks @Marrqquess for the xmem lint cleanup. I tested head
49f113baf8b1aacb84c171922def2f1c7c1a9d17with:Result: 9 xmem tests passed, 0 failed; Clippy passed with warnings denied. The tests cover allocator alignment/freeing, virtual allocation constraints, physical-page mapping, and page-run behavior. The change itself is a Clippy-driven initializer cleanup, so the module tests are package regression checks rather than a new behavior-specific test.
Imported from Marvisak/VIctory. Originally posted by Exorion1er on 2026-11-24T09:33:16Z.
This exact change (
PERFORMANCE_INFORMATIONas a struct literal with..Default::default()inxmem.rs) is already onmain, from commit40c127cin #355. Merging this PR changes nothing now, so it can be closed.Checked with
git merge-treeagainstmain. AI-assisted (Claude Code).Imported from Marvisak/VIctory. Originally posted by Marrqquess on 2026-11-24T12:47:38Z.
Thanks for checking! You're right, this is already on main via
40c127c(Marvisak/VIctory#355). Closing as duplicate.Pull request closed