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

Closed
arthercz wants to merge 2 commits from upstream-pr/676 into main
arthercz commented 2026-11-24 06:40:59 +00:00 (Migrated from github.com)

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


Two hygiene fixes found during a workspace inspection:

  • cargo fmt across the workspace: 168 formatting differences in 32 files (long-line wrapping in gpu/hle/loader/formats). 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 before committing: cargo test --workspace — 264 passed, 0 failed.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6576207378 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/676). Originally posted by [arthercz](https://github.com/arthercz) on 2026-11-24T06:40:59Z. --- Two hygiene fixes found during a workspace inspection: - `cargo fmt` across the workspace: 168 formatting differences in 32 files (long-line wrapping in gpu/hle/loader/formats). `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 before committing: `cargo test --workspace` — 264 passed, 0 failed.
catminou4 commented 2026-11-24 06:54:25 +00:00 (Migrated from github.com)

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

Review: APPROVED


Verified locally on macOS 26 arm64, rustc 1.98.1 at head e8ec70cb:

  • cargo fmt --all -- --check: clean
  • cargo clippy on all macOS-buildable crates (--all-targets): clean, no warnings
  • cargo test on the same crates: all green except victory-pe's 4 own-binary tests, which fail identically on main (they parse the test binary as a PE image — Windows-only; #523 gates them off non-Windows). Not caused by this PR.

(victory-gpu/victory-hle can't compile on macOS at all — main's known cfg issue — so the fmt/clippy changes there are verified by inspection only.)

Approving.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034840233 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/676#pullrequestreview-6034840233). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T06:47:55Z. **Review:** APPROVED --- Verified locally on macOS 26 arm64, rustc 1.98.1 at head e8ec70cb: - `cargo fmt --all -- --check`: clean - `cargo clippy` on all macOS-buildable crates (`--all-targets`): clean, no warnings - `cargo test` on the same crates: all green except victory-pe's 4 own-binary tests, which fail identically on main (they parse the test binary as a PE image — Windows-only; #523 gates them off non-Windows). Not caused by this PR. (victory-gpu/victory-hle can't compile on macOS at all — main's known cfg issue — so the fmt/clippy changes there are verified by inspection only.) Approving.
LAKSHYA-cmd-tech commented 2026-11-24 06:54:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:48:50Z.

Review: APPROVED


LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. cargo test -p victory-hle passed cleanly (86 passed) and cargo clippy -p victory-hle is completely warning-free. Fixing the PERFORMANCE_INFORMATION struct initialization eliminates the persistent clippy warning on main.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034849329 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/676#pullrequestreview-6034849329). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T06:48:50Z. **Review:** APPROVED --- LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. cargo test -p victory-hle passed cleanly (86 passed) and cargo clippy -p victory-hle is completely warning-free. Fixing the PERFORMANCE_INFORMATION struct initialization eliminates the persistent clippy warning on main.
upstream-sync closed this pull request 2026-11-24 07:01:07 +00:00
arthercz commented 2026-11-24 07:01:17 +00:00 (Migrated from github.com)

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


Superseded by #691 (speech) and #692 (fmt/clippy) as two focused PRs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7124458331 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/676#issuecomment-7124458331). Originally posted by [arthercz](https://github.com/arthercz) on 2026-11-24T06:57:04Z. --- Superseded by #691 (speech) and #692 (fmt/clippy) as two focused PRs.

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