Make clippy pass on the #439 integration branch #442
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!442
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-442"
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?
@Kal0s-design on GitHub · 2026-11-29 12:47 UTC · original
Kal0s-design:fix/439-clippy→review/local-integration-20261129· +214 −55 · 34 files · 3 commits · closed without mergingTargets #439's branch (
review/local-integration-20261129), where the Clippy job fails. With this PR, the CI commands pass locally on Windows:cargo clippy --workspace --all-targets --locked -- -D warnings: clean--all-features: cleancargo check --workspace --profile diag --all-features --locked: cleancargo test -p victory-gpu -p victory-hle -p victory-loader --lib: 555 / 228 / 72 passed.cargo test -p victory-shader --lib emit: 229 passed.cargo xtask policy: ok.git diff --check: clean.Two commits:
d2ddf68: the two real lints.manual_is_multiple_ofinemit/water_tile_slots.rsandlet_and_returnin anemit/mod.rstest helper.d9d4aaf: a SAFETY comment right before every blockundocumented_unsafe_blocksflagged. #439 moves that lint fromallowtowarn, and CI's-D warningsmakes each one an error: 89 without features, 131 with--all-features.letwith theunsafefurther in, or a comment separated from its block by other statements. Those now repeat the author's own reason next to each block, or move next to it.timeline/hooks.rsthe calls sit in macro input, where clippy only sees a comment inside the closure, so those closures become blocks. The test helper closure inindirect.rsgets the same treatment.compose.rs,indirect.rs's barrier pass, the FidelityFX host queries and destroy, the DualSense preparsed-data free and the panel's ntdll lookup.Nothing else changes in the code. Worth a read where a reason is mine and not the original author's. Those are the blocks listed in the last point above.
AI-assisted: yes
🤖 Generated with Claude Code
Fix the two clippy errors on the #439 integration branchto Make clippy pass on the #439 integration branch@TaynanGT on GitHub · 2026-11-29 13:23 UTC · original
Thanks for addressing both real lints and the unsafe-block documentation. I integrated the changes locally, retaining the existing mapped-image safety check where the branches differed. Full Clippy validation on the consolidated tree is still pending.
VICTORY_PARTICLE_KNEE, port of VIctory-NVIDIA #2156) #444@Kal0s-design on GitHub · 2026-11-29 14:49 UTC · original
Small follow-up,
f70d0b8: six SAFETY comments inwatch.rscame out doubled, the same line twice in a row (around the view and placeholder tests). They're harmless, but since you already integrated this locally you may want to drop them there too. Clippy is still clean with--all-features.@TaynanGT on GitHub · 2026-11-29 19:02 UTC · original
Thanks for catching the duplicate SAFETY comments. I'll keep the cleanup separate from the functional changes and retain the actual safety rationale. Your all-features Clippy result is useful; the consolidated tree still needs its own validation.
@TaynanGT on GitHub · 2026-11-30 17:06 UTC · original
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed