refactor: Use idiomatic let...else and remove redundant closures#103
refactor: Use idiomatic let...else and remove redundant closures#1032witstudios wants to merge 1 commit intomainfrom
Conversation
Replace match-based early returns with let...else across scan_dir functions and engine request handlers. Replace redundant closures with method references (String::is_empty, ToString::to_string, IntoInnerError::into_error). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
match+ early-return patterns withlet...elsein 7 locations acrosspu-coreandpu-engineString::is_empty,ToString::to_string,IntoInnerError::into_error)Test plan
cargo clippy --all-targetspasses cleancargo test --workspace— all 405 tests passcargo fmt --all— no formatting issues🤖 Generated with Claude Code