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

Loop over (&EXPR).into_iter() #8

Closed
dtolnay opened this issue Mar 6, 2017 · 3 comments
Closed

Loop over (&EXPR).into_iter() #8

dtolnay opened this issue Mar 6, 2017 · 3 comments

Comments

@dtolnay
Copy link
Contributor

dtolnay commented Mar 6, 2017

- for x in &self.y {
+ for x in (&self.y).into_iter() {

I think this fixes both #6 and #7.

@djc
Copy link
Owner

djc commented Mar 6, 2017

Woo, very nice! I had tried some things to figure out to get the inferencing to accept more stuff, but that was kind of a minefield.

@djc djc closed this as completed in b469bc2 Mar 6, 2017
@dtolnay
Copy link
Contributor Author

dtolnay commented Mar 6, 2017

Please add tests for #6 and #7.

@djc
Copy link
Owner

djc commented Mar 6, 2017

Kept them open for a reason. :)

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

No branches or pull requests

2 participants