style: cargo fmt across the workspace; fix clippy field-reassign-with-default #692

Closed
github-bot wants to merge 1 commit from gh-pr/692/head into gh-pr/692/base
Owner

@⁠arthercz on GitHub · 2026-11-24 06:56 UTC · original
arthercz:hygiene → main · +1610 −602 · 32 files · 1 commits · closed without merging

Two hygiene fixes found during a workspace inspection:

  • cargo fmt across the workspace: 168 formatting differences in 32 files. cargo fmt --check is now clean.
  • crates/victory-hle/src/modules/xmem.rs: initialize PERFORMANCE_INFORMATION.cb in the struct literal instead of reassigning after Default::default() (clippy::field-reassign-with-default). cargo clippy --workspace is now warning-free.

Verified: cargo test --workspace — 264 passed, 0 failed.

**@⁠arthercz** on GitHub · 2026-11-24 06:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/692) `arthercz:hygiene` → `main` · +1610 −602 · 32 files · 1 commits · closed without merging Two hygiene fixes found during a workspace inspection: - `cargo fmt` across the workspace: 168 formatting differences in 32 files. `cargo fmt --check` is now clean. - `crates/victory-hle/src/modules/xmem.rs`: initialize `PERFORMANCE_INFORMATION.cb` in the struct literal instead of reassigning after `Default::default()` (clippy::field-reassign-with-default). `cargo clippy --workspace` is now warning-free. Verified: `cargo test --workspace` — 264 passed, 0 failed.
- cargo fmt: 168 formatting differences in 32 files
- xmem.rs: initialize PERFORMANCE_INFORMATION cb in the struct literal
  (clippy::field_reassign_with_default)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:13 +00:00
github-bot closed this pull request 2026-11-26 04:13:13 +00:00
Author
Owner

@⁠senchsus on GitHub · 2026-11-24 07:14 UTC · original

Verified on macOS 26 arm64, rustc 1.98.1, head e8ec70c:

  • cargo fmt --all -- --check: clean.
  • cargo clippy on all macOS-buildable crates with --all-targets: clean except the pre-existing constant_color dead-code warning (fixed in #685).
  • cargo test on the same crates: only the known own-test-binary failures in victory-pe/victory-loader — identical to main's baseline (gated off non-Windows by #235/#523), so no regressions from the formatting.

One merge-order note: this reformats 32 files workspace-wide, including victory-shader/src/emit/lower.rs and valu_tests.rs that several open shader PRs (#682, #683, #684, #694) also touch. Whichever lands first, the others will need a rebase — merging this one early minimizes churn.

Small correction: #692 doesn't touch crates/victory-shader at all (none of its 32 files are there). I also checked #682 against #683, #684 and #694: it merges cleanly with each of them and with all of them together, #692 included, in any order.

**@⁠senchsus** on GitHub · 2026-11-24 07:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/692#issuecomment-7124769147) > Verified on macOS 26 arm64, rustc 1.98.1, head `e8ec70c`: > > * `cargo fmt --all -- --check`: clean. > * `cargo clippy` on all macOS-buildable crates with `--all-targets`: clean except the pre-existing `constant_color` dead-code warning (fixed in #685). > * `cargo test` on the same crates: only the known own-test-binary failures in victory-pe/victory-loader — identical to main's baseline (gated off non-Windows by #235/#523), so no regressions from the formatting. > > One merge-order note: this reformats 32 files workspace-wide, including `victory-shader/src/emit/lower.rs` and `valu_tests.rs` that several open shader PRs (#682, #683, #684, #694) also touch. Whichever lands first, the others will need a rebase — merging this one early minimizes churn. Small correction: #692 doesn't touch crates/victory-shader at all (none of its 32 files are there). I also checked #682 against #683, #684 and #694: it merges cleanly with each of them and with all of them together, #692 included, in any order.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:27 UTC · original

Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/692#issuecomment-7148530174) Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current). If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

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!692
No description provided.