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

Closed
github-bot wants to merge 2 commits from gh-pr/676/head into gh-pr/676/base
Owner

@⁠arthercz on GitHub · 2026-11-24 06:40 UTC · original
arthercz:main → main · +1807 −650 · 36 files · 2 commits · closed without merging

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.

**@⁠arthercz** on GitHub · 2026-11-24 06:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/676) `arthercz:main` → `main` · +1807 −650 · 36 files · 2 commits · closed without merging 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.
- cargo fmt: 168 formatting differences in 32 files
- xmem.rs: initialize PERFORMANCE_INFORMATION cb in the struct literal
  (clippy::field_reassign_with_default)
Speech streams were valid empty WAVE files, so the title's narration
(accessibility menus and the like) was silent. Route text (0x68) and
SSML (0xa8) through Windows.Media.SpeechSynthesis and hand the title the
spoken RIFF stream; when the host has no voice (no voices installed,
WinRT unavailable), keep the empty-WAVE fallback so the title still
plays the stream and goes on.

- streams become boxed handles, reclaimed by close (0x70); the
  synthesizer handle stays a fixed address
- enumerate_voices stays a no-op: no title of ours asks, and the host's
  default voice speaks
- the windows crate moves out of the diagnostics-only feature so its
  WinRT bindings link in release builds too

Verified on Windows 11: the unit test now speaks "Hello" and validates
the returned WAVE (RIFF chunk walk, PCM 16 kHz mono 16-bit, non-empty
data); cargo test --workspace 264 passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:12:38 +00:00
github-bot closed this pull request 2026-11-26 04:12:38 +00:00
Author
Owner

@⁠arthercz on GitHub · 2026-11-24 06:57 UTC · original

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

**@⁠arthercz** on GitHub · 2026-11-24 06:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/676#issuecomment-7124458331) Superseded by #691 (speech) and #692 (fmt/clippy) as two focused PRs.

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