New debugging span (using range). #1123#1148
Conversation
📝 WalkthroughWalkthroughSpan's Debug output was changed to show a single Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
🚥 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
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✏️ Tip: You can disable this entire section by setting 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 |
tomtau
left a comment
There was a problem hiding this comment.
What's the issue with the original debug print format?
idrk, just preference ig? (it's also a bit nicer to work with imo.) |
|
oh, it's this issue: #1123 sorry. |
pest/src/span.rs
Outdated
| } | ||
|
|
||
| impl fmt::Debug for Span<'_> { | ||
| impl<'i> fmt::Debug for Span<'i> { |
There was a problem hiding this comment.
is the explicit lifetime needed? The clippy issue shows the original code before the change was ok / it can be elided: https://github.com/pest-parser/pest/actions/runs/20941202000/job/60191732029?pr=1148#step:5:229
There was a problem hiding this comment.
i can change it to be that way. clippy was just yelling at me, that's all.
clippy 0.1.91 (9c27f27ea3 2025-09-08)
Changed debug span from having separate start and end fields to using range.
One test fails but it kept failing even before I made my changes.
Same for some clippy warnings.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.