fix for rust nightly

This commit is contained in:
Andrew Kelley 2015-01-28 12:43:44 -07:00
parent 1a9cf9bc5c
commit 6a27fa9d26
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ extern crate gl_generator;
extern crate khronos_api;
use std::os;
use std::io::File;
use std::old_io::File;
fn main() {
let target = os::getenv("TARGET").unwrap();

View file

@ -4,7 +4,7 @@ extern crate android_glue;
extern crate glutin;
use std::io::stdio::stdin;
use std::old_io::stdio::stdin;
mod support;

View file

@ -251,7 +251,7 @@ impl Window {
pub fn wait_events(&self) -> RingBuf<Event> {
use std::time::Duration;
use std::io::timer;
use std::old_io::timer;
timer::sleep(Duration::milliseconds(16));
self.poll_events()
}

View file

@ -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")]