Make clippy pass on the #439 integration branch #442
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T12:47:56Z.
Targets #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
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T13:23:26Z.
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.
Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T14:49:14Z.
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.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:02:07Z.
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.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:06:42Z.
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