Skip to content

chore(lint): dropped results are handled, not hidden behind let _ - #715

Draft
PiquelChips wants to merge 1 commit into
mainfrom
chore/let-underscore-must-use
Draft

PiquelChips wants to merge 1 commit into
mainfrom
chore/let-underscore-must-use

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

What and why

Turns on clippy::let_underscore_must_use, so let _ = … can no longer hide a #[must_use] result such as a dropped error. Fixed all 19 sites Clippy reports (no #[expect]):

  • The two reference generators (Section::render, the CLI reference) wrote into a String with let _ = write!(…). They now propagate the fmt::Result; Section::render returns Result<String, fmt::Error> and its three test callers .expect it.
  • Six sites deliberately ignore a failure that already has a documented reason (a closed channel, a watch that ended, a failure to print an error that is already failing the command). They end in .ok() instead of let _ =, keeping the comment that says why.

Testing

cargo clippy -- -D warnings passes over the workspace and over each crate alone; the reference tests of auth-service and sourceorigin-web pass.

Note

Written by Claude Sonnet 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant