Skip to content

Conversation

@andygrove
Copy link
Member

Summary

  • Fix clippy error where unwrap() would always panic by using local root_op variable directly
  • Replace is_some() + unwrap() patterns with idiomatic if let Some(...) in two locations

These issues were introduced by new clippy rules in Rust 1.93.

Test plan

  • cargo clippy --all-targets passes with Rust 1.93.0

🤖 Generated with Claude Code

- Use local `root_op` variable instead of unwrapping `exec_context.root_op`
- Replace `is_some()` + `unwrap()` pattern with `if let Some(...)`

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@andygrove andygrove requested a review from mbutrovich January 22, 2026 15:54
@mbutrovich mbutrovich changed the title Fix clippy warnings for Rust 1.93 chore: fix clippy warnings for Rust 1.93 Jan 22, 2026
Copy link
Contributor

@mbutrovich mbutrovich left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @andygrove!

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.04%. Comparing base (f09f8af) to head (537d62e).
⚠️ Report is 864 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3239      +/-   ##
============================================
+ Coverage     56.12%   60.04%   +3.92%     
- Complexity      976     1418     +442     
============================================
  Files           119      170      +51     
  Lines         11743    15774    +4031     
  Branches       2251     2606     +355     
============================================
+ Hits           6591     9472    +2881     
- Misses         4012     4981     +969     
- Partials       1140     1321     +181     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andygrove andygrove merged commit 313a9d9 into apache:main Jan 22, 2026
121 of 122 checks passed
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