Skip to content

custom-set: allow example's new to take iterator #456

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

Closed
wants to merge 2 commits into from
Closed

custom-set: allow example's new to take iterator #456

wants to merge 2 commits into from

Conversation

petertseng
Copy link
Member

I think the first commit is something we want? We'd like CustomSet to take &[T] instead of Vec<T>, right? It is included in #454 so that's fine

The second commit ("custom-set:take the iterator directly") is interesting but doesn't appear to have any other tangible benefits. I don't think I'm inclined to merge it.

Note that this only adds functionality to the example; student solutions are not required to take an IntoIterator.

I don't believe Clippy gave a suggestion for this one, but it is similar
to useless_vec.

The example had to be reworked to make this work.
@petertseng petertseng closed this Mar 10, 2018
@petertseng petertseng deleted the custom-set-short branch March 12, 2018 01:11
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.

1 participant