aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/fullscreen.rs2
-rw-r--r--examples/multiwindow.rs2
-rw-r--r--examples/window.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs
index 7c2ece8..c07edaa 100644
--- a/examples/fullscreen.rs
+++ b/examples/fullscreen.rs
@@ -47,6 +47,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());
}
}
diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs
index cd57d2e..115d5f2 100644
--- a/examples/multiwindow.rs
+++ b/examples/multiwindow.rs
@@ -47,6 +47,6 @@ fn run(window: glutin::Window, color: (f32, f32, f32, f32)) {
context.draw_frame(color);
window.swap_buffers();
- window.wait_events().collect::<Vec<glutin::Event>>();
+ window.wait_events().next();
}
}
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());
}
}