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

Closed
arthercz wants to merge 1 commit from upstream-pr/692 into main
arthercz commented 2026-11-24 06:56:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by arthercz on 2026-11-24T06:56:56Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6576417669 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/692). Originally posted by [arthercz](https://github.com/arthercz) on 2026-11-24T06:56:56Z. --- 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.
catminou4 commented 2026-11-24 07:01:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T06:58:43Z.

Review: APPROVED


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.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034960170 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/692#pullrequestreview-6034960170). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T06:58:43Z. **Review:** APPROVED --- 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.
LAKSHYA-cmd-tech commented 2026-11-24 08:02:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T07:14:54Z.

Review: APPROVED


Tested on Windows 11 MSVC:

  • cargo fmt --check: clean (0 diffs across all workspace crates)
  • cargo clippy -p victory-hle --all-targets -- -D warnings: clean (fixes field-reassign-with-default in xmem.rs)
  • cargo test --workspace: clean, all tests pass
  • cargo xtask policy: 151 files ok
<!-- greyfinch-sync:Marvisak/VIctory:review:6035121533 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/692#pullrequestreview-6035121533). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T07:14:54Z. **Review:** APPROVED --- Tested on Windows 11 MSVC: - cargo fmt --check: clean (0 diffs across all workspace crates) - cargo clippy -p victory-hle --all-targets -- -D warnings: clean (fixes field-reassign-with-default in xmem.rs) - cargo test --workspace: clean, all tests pass - cargo xtask policy: 151 files ok
senchsus commented 2026-11-24 08:02:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by senchsus on 2026-11-24T07:14:19Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7124769147 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/692#issuecomment-7124769147). Originally posted by [senchsus](https://github.com/senchsus) on 2026-11-24T07:14:19Z. --- > 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.
upstream-sync closed this pull request 2026-11-25 01:04:48 +00:00
Marvisak commented 2026-11-25 01:07:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:27:30Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148530174 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/692#issuecomment-7148530174). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:27:30Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!692
No description provided.