Skip to content

Conversation

@generall
Copy link
Member

@generall generall commented Dec 2, 2025

No description provided.

@generall generall requested review from agourlay and timvisee December 2, 2025 15:15
let current_id = unused_segments
.last()
.or(open_segment)
.map_or(1, |s| s.id + 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a debug assertion to ensure any open_segment has a lower ID than all unused_segments.

Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tests! 🙏

I see the nasty edge case in the old code when we provide just one segment.

@timvisee timvisee merged commit 94f0f81 into master Dec 2, 2025
4 checks passed
This was referenced Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants