diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-01-03 23:11:59 +0100 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-01-03 23:15:39 +0100 |
commit | 4c5e430dd3fcd38c29bfbc20dc0cc65defd33224 (patch) | |
tree | 438ed8c0ce41fa513e92a4dd0696bf4114df38fa /examples | |
parent | ebe32bb2d803bc22c4b309acbbd48f3dc2a12127 (diff) | |
download | glutin-4c5e430dd3fcd38c29bfbc20dc0cc65defd33224.tar.gz glutin-4c5e430dd3fcd38c29bfbc20dc0cc65defd33224.zip |
Update for Rustc
Diffstat (limited to 'examples')
-rw-r--r-- | examples/fullscreen.rs | 2 | ||||
-rw-r--r-- | examples/support/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs index bc15379..6a2af2c 100644 --- a/examples/fullscreen.rs +++ b/examples/fullscreen.rs @@ -25,7 +25,7 @@ fn main() { } print!("Please write the number of the monitor to use: "); - let num = from_str(stdin().read_line().unwrap().as_slice().trim()) + let num = stdin().read_line().unwrap().as_slice().trim().parse() .expect("Plase enter a number"); let monitor = glutin::get_available_monitors().nth(num).expect("Please enter a valid ID"); diff --git a/examples/support/mod.rs b/examples/support/mod.rs index 6904653..42ce6a4 100644 --- a/examples/support/mod.rs +++ b/examples/support/mod.rs @@ -80,7 +80,7 @@ impl Context { } #[cfg(target_os = "android")] -static VERTEX_DATA: [f32, ..15] = [ +static VERTEX_DATA: [f32; 15] = [ -0.5, -0.5, 1.0, 0.0, 0.0, 0.0, 0.5, 0.0, 1.0, 0.0, 0.5, -0.5, 0.0, 0.0, 1.0 |