-
-
Notifications
You must be signed in to change notification settings - Fork 714
refactor: use if-let-chain if possible (applying clippy fixes) #7169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedMore than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 69 files out of 177 files are above the max files limit of 100. Please upgrade to Pro plan to get higher limits. You can disable this status message by setting the ✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
CodSpeed Performance ReportMerging #7169 will not alter performanceComparing Summary
|
Summary
Rust toolchain v1.89.0 added a feature to the
collapsible_if
clippy lint that converts nestedif let
statements into a chained if statement. As there are a lot of fixes to be applied, I created a separated PR to just apply the fixes usingcargo clippy --workspace --all-features --all-targets --fix
.As an exception, I manually edited
xtask/codegen
to output code using if-let-chains, before applying the clippy fixes.Test Plan
Existing tests should pass.
Docs
N/A