aboutsummaryrefslogtreecommitdiffstats
path: root/examples/window.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-19 13:46:30 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-19 13:46:30 +0100
commitd48ccb381a99948f05bf09ee3a6bf0580d77392d (patch)
tree92fd34cea53e758cbb8202bfe5c0ef4e557b580c /examples/window.rs
parentb6f3bfa76811db8c249af08066bfb37bb1385165 (diff)
parent8fcd6767148eaa3a516c58d16238d842ef32d26a (diff)
downloadglutin-d48ccb381a99948f05bf09ee3a6bf0580d77392d.tar.gz
glutin-d48ccb381a99948f05bf09ee3a6bf0580d77392d.zip
Merge pull request #213 from tomaka/permanent-iterators
Iterators returned by wait_events and poll_events are now persistent
Diffstat (limited to 'examples/window.rs')
-rw-r--r--examples/window.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/window.rs b/examples/window.rs
index 37966c4..1d3b615 100644
--- a/examples/window.rs
+++ b/examples/window.rs
@@ -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());
}
}