Skip to content

Fix iterator bugs #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 17, 2025
Merged

Fix iterator bugs #10

merged 6 commits into from
May 17, 2025

Conversation

dspyz-matician
Copy link
Contributor

@dspyz-matician dspyz-matician commented Mar 13, 2025

Fix next and next_back potentially each returning the same element.
Also, make sure that the size_hint returns the number of elements remaining rather than the total number of elements.
drain_iter should always drain the list, even if it's not fully consumed (since there aren't memory safety issues in play, we won't worry about the mem::forget case, the way Vec::drain does)

@Fairglow Fairglow merged commit e60702f into Fairglow:main May 17, 2025
1 check passed
Fairglow added a commit that referenced this pull request May 17, 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.

2 participants