Repository navigation
Split IdTracker trait into IdTrackerRead and IdTracker - #8826
Conversation
Read-only methods now live on a separate IdTrackerRead trait, with the mutating IdTracker trait extending it. This lets read-only call sites depend only on the read API. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
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 (39)
📝 WalkthroughWalkthroughThis PR refactors the Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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 |
| fn files(&self) -> Vec<PathBuf>; | ||
|
|
||
| fn immutable_files(&self) -> Vec<PathBuf> { | ||
| Vec::new() | ||
| } |
There was a problem hiding this comment.
Perhaps files/immutable_files also can be in IdTrackerRead.
There was a problem hiding this comment.
I am not sure yet, will decide later
Read-only methods now live on a separate IdTrackerRead trait, with the mutating IdTracker trait extending it. This lets read-only call sites depend only on the read API. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
IdTrackertrait so read-only methods live on a newIdTrackerReadtrait, with the mutatingIdTrackertrait extending it.IdTrackerEnum,ImmutableIdTracker,InMemoryIdTracker, andMutableIdTrackeraccordingly.segment/collection(libs, tests, benches) to importIdTrackerReadwhere read methods are used; dropped now-unusedIdTrackerimports.Test plan
cargo clippy --workspace --all-targetspasses cleancargo +nightly fmt --all -- --checkpasses🤖 Generated with Claude Code