diff options
Diffstat (limited to 'examples/multiwindow.rs')
-rw-r--r-- | examples/multiwindow.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs index a7680b8..ce97266 100644 --- a/examples/multiwindow.rs +++ b/examples/multiwindow.rs @@ -1,12 +1,10 @@ -#![feature(std_misc)] - #[cfg(target_os = "android")] #[macro_use] extern crate android_glue; extern crate glutin; -use std::thread::Thread; +use std::thread; mod support; @@ -22,15 +20,15 @@ fn main() { let window2 = glutin::Window::new().unwrap(); let window3 = glutin::Window::new().unwrap(); - let t1 = Thread::scoped(move || { + let t1 = thread::scoped(move || { run(window1, (0.0, 1.0, 0.0, 1.0)); }); - let t2 = Thread::scoped(move || { + let t2 = thread::scoped(move || { run(window2, (0.0, 0.0, 1.0, 1.0)); }); - let t3 = Thread::scoped(move || { + let t3 = thread::scoped(move || { run(window3, (1.0, 0.0, 0.0, 1.0)); }); |