From 6a27fa9d266b5e261a2b9f9e071680f06fb6d904 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 28 Jan 2015 12:43:44 -0700 Subject: fix for rust nightly --- src/android/mod.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/android/mod.rs b/src/android/mod.rs index 7c4f186..f406e2b 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -251,7 +251,7 @@ impl Window { pub fn wait_events(&self) -> RingBuf { use std::time::Duration; - use std::io::timer; + use std::old_io::timer; timer::sleep(Duration::milliseconds(16)); self.poll_events() } diff --git a/src/lib.rs b/src/lib.rs index 1cf9b48..eefd8e0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -425,7 +425,7 @@ impl HeadlessRendererBuilder { /// // draw everything here /// /// window.swap_buffers(); -/// std::io::timer::sleep(17); +/// std::old_io::timer::sleep(17); /// } /// ``` #[cfg(feature = "window")] -- cgit v1.2.3