chore(loader): gate the Patched import on Windows #414
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!414
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-414"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCWhat
crates/victory-loader/src/detail.rs:38andcrates/victory-loader/src/memory_budget.rs:15importcrate::frame_rate::Patchedunconditionally, but every use is inside#[cfg(windows)]functions, so a Linuxcargo check -p victory-loaderprints twounused importwarnings (--all-targetsprints four, one per test harness).Adding
#[cfg(windows)]to the two imports removes all of them without touching the Windows code path.Validation
Patchedwarnings on Linuxmaincargo check -p victory-loader --all-targets --target x86_64-pc-windows-msvc— clean.rustfmt --checkon 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/.