Skip to content

Enable clippy::manual_let_else workspace-wide and fix issues - #4430

Merged
Kenny Kerr (kennykerr) merged 2 commits into
masterfrom
copilot/enable-manual-let-else-workspace-wide
May 18, 2026
Merged

Enable clippy::manual_let_else workspace-wide and fix issues#4430
Kenny Kerr (kennykerr) merged 2 commits into
masterfrom
copilot/enable-manual-let-else-workspace-wide

Conversation

Copilot AI commented May 18, 2026

Copy link
Copy Markdown
Contributor
  • Inspect branch status and identify merge conflicts
  • Run baseline formatting/tests for touched areas before edits
  • Resolve merge conflicts with minimal, surgical changes
  • Run targeted validation (fmt + relevant tests)
  • Run parallel validation (Code Review + CodeQL)
  • Reply to the review comment with commit hash

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables the clippy::manual_let_else lint workspace-wide and rewrites the existing match patterns it flags into let ... else form across libraries and tests.

Changes:

  • Add manual_let_else = "warn" to [workspace.lints.clippy].
  • Convert single-arm match returning/panicking on the other arm into let ... else in several library sites.
  • Apply the same rewrite in test fixtures.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Cargo.toml Enable manual_let_else lint workspace-wide
crates/libs/interface/src/guid.rs Rewrite missing-part check as let Some(part) = ... else
crates/libs/rdl/src/clang/callback.rs Rewrite function_pointee match as let Some(...) else
crates/libs/rdl/src/clang/const.rs Rewrite parse_body match as let Some(value) = ... else
crates/libs/rdl/src/reader/attribute_ref.rs Two rewrites: ctor_values check and enum variant value check
crates/tests/libs/bindgen/tests/fixtures.rs Rewrite Result match as let Err(payload) = ... else
crates/tests/libs/rdl/tests/guid-derive.rs Three rewrites for Value::U32/U16 extractions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kennykerr

Copy link
Copy Markdown
Collaborator

Copilot resolve the merge conflicts in this pull request

@kennykerr
Kenny Kerr (kennykerr) marked this pull request as ready for review May 18, 2026 19:18
…al-let-else-workspace-wide

# Conflicts:
#	Cargo.toml

Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>

Copilot AI commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

Copilot resolve the merge conflicts in this pull request

Resolved and pushed in e75c6cd: merged latest origin/master, fixed the Cargo.toml conflict, and validated with fmt + targeted tests.

@kennykerr
Kenny Kerr (kennykerr) merged commit 248f53d into master May 18, 2026
29 checks passed
@kennykerr
Kenny Kerr (kennykerr) deleted the copilot/enable-manual-let-else-workspace-wide branch May 18, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants