Repository navigation
CI-RUST195: keep strict Clippy clean on Rust 1.95 - #1835
Merged
Merged
Conversation
Move nested conditions into match guards and simplify equivalent Boolean expressions without changing validation or short-circuit behavior. Keep the explicit permitted Testkit dev-dependency arm in the layer checker. Co-Authored-By: OpenAI Codex <noreply@openai.com>
Member
|
Thank you @Myrarc! This landed on main in integration batch 36 (#1843). If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rust 1.95's Clippy rejects existing nested match conditions and Boolean expressions, so
cargo xtask cistops at strict linting. Move those conditions into match guards and simplify the equivalent Boolean expressions without changing accepted inputs, validation, or short-circuit evaluation.Keep the explicit permitted
Testkitdevelopment-dependency arm so it cannot fall through to the ordinary layer rule. No lint allowances, dependency changes, or quality-gate changes are included.Validation:
cargo xtask cipassed all eight gates on macOS arm64 with Rust 1.95.0: fmt, strict workspace Clippy, HEIF lint/tests, workspace tests, parity, layers, assets, and WASM checks for all 28 packages. The workspace test harness reports 3,324 passed, 0 failed, 29 ignored, including 866 engine tests, 842 UI tests, andunregistered_and_testkit_rules.Existing ignores cover real-model downloads, benchmarks/probes, and helper processes. Optional corpus files were not downloaded, so corpus-backed tests skip their file checks. The WASM gate passes with existing target-specific unused/dead-code warnings in untouched files. Windows/Linux and browser runtime testing were not performed locally.