Skip to content

fix: eliminate unused_assignments warning in backend#151

Merged
wesbillman merged 1 commit intomainfrom
fix/unused-exit-status-assignment
Mar 21, 2026
Merged

fix: eliminate unused_assignments warning in backend#151
wesbillman merged 1 commit intomainfrom
fix/unused-exit-status-assignment

Conversation

@wesbillman
Copy link
Collaborator

@wesbillman wesbillman commented Mar 21, 2026

Summary

  • Use Rust's loop-break-with-value pattern to return ExitStatus directly from the polling loop, removing the mutable Option that triggered unused_assignments
  • Simplifies downstream code since exit_status is now ExitStatus instead of Option<ExitStatus>

Test plan

  • cargo check passes with zero warnings
  • Existing CI passes

🤖 Generated with Claude Code

Use Rust's loop-break-with-value to return ExitStatus directly from the
loop, removing the need for a mutable Option that was always overwritten
before being read. This also simplifies downstream usage since exit_status
is now an ExitStatus instead of Option<ExitStatus>.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wesbillman wesbillman merged commit 4a2243d into main Mar 21, 2026
8 checks passed
@wesbillman wesbillman deleted the fix/unused-exit-status-assignment branch March 21, 2026 16:53
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.

1 participant