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

Implement IntoIterator for Events #693

Merged
merged 2 commits into from Aug 21, 2017

Conversation

Projects
None yet
3 participants
@jehiggs
Copy link
Contributor

jehiggs commented Aug 20, 2017

Fixes #682.

@KodrAus
Copy link

KodrAus left a comment

Thanks @jehiggs!

src/poll.rs Outdated
///
/// poll.poll(&mut events, Some(Duration::from_millis(100)))?;
///
/// for event in events.into_iter() {

This comment has been minimized.

@KodrAus

KodrAus Aug 21, 2017

This could just be for event in events because Rust's for loops are aware of IntoIterator.

@alexcrichton alexcrichton merged commit 3ad3f32 into carllerche:master Aug 21, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@alexcrichton

This comment has been minimized.

Copy link
Contributor

alexcrichton commented Aug 21, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.