Skip to content

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

Closed
arthercz wants to merge 1 commit into
Marvisak:mainfrom
arthercz:hygiene
Closed

arthercz wants to merge 1 commit into
Marvisak:mainfrom
arthercz:hygiene

Conversation

@arthercz

Copy link
Copy Markdown

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.

…with-default

- cargo fmt: 168 formatting differences in 32 files
- xmem.rs: initialize PERFORMANCE_INFORMATION cb in the struct literal
  (clippy::field_reassign_with_default)

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@senchsus

Copy link
Copy Markdown

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

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.

@LAKSHYA-cmd-tech LAKSHYA-cmd-tech left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Marvisak

Copy link
Copy Markdown
Owner

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 Marvisak closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants