chore(loader): gate the Patched import on Windows #414

Manually merged
github merged 1 commit from github-bot/gh-414 into main 2026-12-04 03:42:20 +00:00 AGit
Owner

@⁠Luxuride on GitHub · 2026-12-04 01:43 UTC · original
Luxuride:chore/loader-patched-import → main · +2 −0 · 2 files · 1 commits · merged 2026-12-04 03:40 UTC

What

crates/victory-loader/src/detail.rs:38 and crates/victory-loader/src/memory_budget.rs:15 import crate::frame_rate::Patched unconditionally, but every use is inside #[cfg(windows)] functions, so a Linux cargo check -p victory-loader prints two unused import warnings (--all-targets prints four, one per test harness).

Adding #[cfg(windows)] to the two imports removes all of them without touching the Windows code path.

Validation

unused Patched warnings on Linux
main 2
this branch 0

cargo check -p victory-loader --all-targets --target x86_64-pc-windows-msvc — clean. rustfmt --check on both files — clean.

Overlap check

Not in any open PR or issue: no open PR touches either file, and this change does not touch crates/victory-loader/src/frame_rate/.

**@⁠Luxuride** on GitHub · 2026-12-04 01:43 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/414) `Luxuride:chore/loader-patched-import` → `main` · +2 −0 · 2 files · 1 commits · merged 2026-12-04 03:40 UTC ## What `crates/victory-loader/src/detail.rs:38` and `crates/victory-loader/src/memory_budget.rs:15` import `crate::frame_rate::Patched` unconditionally, but every use is inside `#[cfg(windows)]` functions, so a Linux `cargo check -p victory-loader` prints two `unused import` warnings (`--all-targets` prints four, one per test harness). Adding `#[cfg(windows)]` to the two imports removes all of them without touching the Windows code path. ## Validation | | unused `Patched` warnings on Linux | |---|---| | `main` | 2 | | this branch | 0 | `cargo check -p victory-loader --all-targets --target x86_64-pc-windows-msvc` — clean. `rustfmt --check` on both files — clean. ## Overlap check Not in any open PR or issue: no open PR touches either file, and this change does not touch `crates/victory-loader/src/frame_rate/`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 01:44:00 +00:00
github manually merged commit cf55beb715 into main 2026-12-04 03:42:20 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.