Iterators returned by wait_events and poll_events are now persistent

This commit is contained in:
Pierre Krieger 2015-01-19 13:04:14 +01:00
parent bcda363188
commit 8fcd676714
4 changed files with 33 additions and 11 deletions

View file

@ -30,6 +30,6 @@ fn main() {
context.draw_frame((0.0, 1.0, 0.0, 1.0));
window.swap_buffers();
println!("{:?}", window.wait_events().collect::<Vec<glutin::Event>>());
println!("{:?}", window.wait_events().next());
}
}