Skip to content
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

Simplify/fix Arc::from_iter #87

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Conversation

stepancheg
Copy link
Contributor

When exact size iterator is not empty, .next() is called twice after iteration ends, and the second call is allowed to return Some for non-fused iterator.

Also less code, and probably faster because fewer branches and smaller binary size.

When exact size iterator is not empty, `.next()` is called twice
after iteration ends, and the second call is allowed to return
`Some` for non-fused iterator.

Also less code, and probably faster because fewer branches and
smaller binary size.
@Manishearth Manishearth merged commit 81e3602 into Manishearth:master Apr 18, 2024
4 checks passed
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.

None yet

2 participants