Repository navigation
Replace has_deferred_points with deferred_points_count in SegmentEntry - #8391
Conversation
…Entry Change the `SegmentEntry` trait method from returning a boolean to returning the actual count of deferred points (`usize`). This gives callers more information without needing a separate method, while existing boolean checks simply compare against zero. Made-with: Cursor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR replaces the boolean deferred-points predicate with a numeric counter across the codebase: Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.OpenGrep is compatible with Semgrep configurations. Add an |
Made-with: Cursor
…Entry (#8391) * Replace `has_deferred_points` with `deferred_points_count` in SegmentEntry Change the `SegmentEntry` trait method from returning a boolean to returning the actual count of deferred points (`usize`). This gives callers more information without needing a separate method, while existing boolean checks simply compare against zero. Made-with: Cursor * Fix clippy collapsible_if warning in deferred_points_count Made-with: Cursor --------- Co-authored-by: Cursor Agent <[email protected]>
…Entry (#8391) * Replace `has_deferred_points` with `deferred_points_count` in SegmentEntry Change the `SegmentEntry` trait method from returning a boolean to returning the actual count of deferred points (`usize`). This gives callers more information without needing a separate method, while existing boolean checks simply compare against zero. Made-with: Cursor * Fix clippy collapsible_if warning in deferred_points_count Made-with: Cursor --------- Co-authored-by: Cursor Agent <[email protected]>
Summary
has_deferred_points(&self) -> boolwithdeferred_points_count(&self) -> usizein theSegmentEntrytrait, so callers can see the number of deferred points rather than just a boolean.> 0.Test plan
cargo checkpassescargo +nightly fmt --all -- --checkpassestest_deferred_points)Made with Cursor