feat(api)!: add vertex construction macro#469
Conversation
- Add `vertex!` as a fallible constructor for coordinate-only and data-bearing vertices. - Export the macro through the root, construction, and triangulation preludes. - Migrate public docs, examples, and benchmark setup to prefer `vertex!` for incidental vertex construction. - Retire the Semgrep rule that banned `vertex!` and document the new Rust style guidance. BREAKING CHANGE: `Vertex::try_new_with_data` now takes `data: U` instead of `impl Into<U>`. Callers must pass the exact vertex data type or convert explicitly before construction. Closes #466
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 277 |
🟢 Coverage 100.00% diff coverage · 0.00% coverage variation
Metric Results Coverage variation ✅ 0.00% coverage variation (-1.00%) Diff coverage ✅ 100.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (fe3ed92) 69019 63272 91.67% Head commit (96063b7) 69016 (-3) 63268 (-4) 91.67% (0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#469) 5 5 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (60)
💤 Files with no reviewable changes (1)
WalkthroughIntroduces a new exported Changesvertex! macro introduction and codebase-wide adoption
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #469 +/- ##
==========================================
- Coverage 91.64% 91.64% -0.01%
==========================================
Files 72 72
Lines 68799 68796 -3
==========================================
- Hits 63054 63050 -4
- Misses 5745 5746 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
vertex!as a fallible constructor for coordinate-only and data-bearing vertices.vertex!for incidental vertex construction.vertex!and document the new Rust style guidance.BREAKING CHANGE:
Vertex::try_new_with_datanow takesdata: Uinstead ofimpl Into<U>. Callers must pass the exact vertex data type or convert explicitly before construction.Closes #466