mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
fix for rust nightly
This commit is contained in:
2
build.rs
2
build.rs
@@ -3,7 +3,7 @@ extern crate gl_generator;
|
|||||||
extern crate khronos_api;
|
extern crate khronos_api;
|
||||||
|
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::io::File;
|
use std::old_io::File;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let target = os::getenv("TARGET").unwrap();
|
let target = os::getenv("TARGET").unwrap();
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ extern crate android_glue;
|
|||||||
|
|
||||||
extern crate glutin;
|
extern crate glutin;
|
||||||
|
|
||||||
use std::io::stdio::stdin;
|
use std::old_io::stdio::stdin;
|
||||||
|
|
||||||
mod support;
|
mod support;
|
||||||
|
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ impl Window {
|
|||||||
|
|
||||||
pub fn wait_events(&self) -> RingBuf<Event> {
|
pub fn wait_events(&self) -> RingBuf<Event> {
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use std::io::timer;
|
use std::old_io::timer;
|
||||||
timer::sleep(Duration::milliseconds(16));
|
timer::sleep(Duration::milliseconds(16));
|
||||||
self.poll_events()
|
self.poll_events()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -425,7 +425,7 @@ impl HeadlessRendererBuilder {
|
|||||||
/// // draw everything here
|
/// // draw everything here
|
||||||
///
|
///
|
||||||
/// window.swap_buffers();
|
/// window.swap_buffers();
|
||||||
/// std::io::timer::sleep(17);
|
/// std::old_io::timer::sleep(17);
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(feature = "window")]
|
#[cfg(feature = "window")]
|
||||||
|
|||||||
Reference in New Issue
Block a user