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

Add FromIterator impl for ZeroVec #1169

Merged
merged 2 commits into from
Oct 12, 2021

Conversation

Manishearth
Copy link
Member

Needed in #1167

@Manishearth Manishearth requested a review from sffc as a code owner October 12, 2021 19:03
@Manishearth Manishearth mentioned this pull request Oct 12, 2021
3 tasks
Copy link
Contributor

@iainireland iainireland left a comment

Choose a reason for hiding this comment

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

LGTM!

@Manishearth Manishearth merged commit a3ef861 into unicode-org:main Oct 12, 2021
@Manishearth Manishearth deleted the zv-fromiter branch October 12, 2021 20:06
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

(post-submit review)

@@ -534,6 +535,14 @@ where
}
}

impl<T: AsULE> FromIterator<T> for ZeroVec<'_, T> {
fn from_iter<I>(iter: I) -> Self
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Add some documentation to this impl to say that from_iter always results in an Owned ZeroVec.

Done in #1185

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