aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-04 20:01:57 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-04 20:01:57 +0100
commit2174177fda57004e49dfefb75e63f551b16ab6e7 (patch)
tree832a3b9751f5b33f489feb47814993444b3e9940
parent0937d809b58472f815fd97598f379bbd13937e7f (diff)
parent2b7e74d55ad132dd6f0d3a2b35c7cf739b31f92d (diff)
downloadglutin-2174177fda57004e49dfefb75e63f551b16ab6e7.tar.gz
glutin-2174177fda57004e49dfefb75e63f551b16ab6e7.zip
Merge pull request #183 from ozkriff/master
android: Updated for rust fc2ba1393 2015-01-03
-rw-r--r--src/android/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index 7df0bec..7e1c35d 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -1,6 +1,7 @@
extern crate android_glue;
use libc;
+use std::sync::mpsc::{Receiver, channel};
use {CreationError, Event, WindowBuilder};
use CreationError::OsError;
use events::ElementState::{Pressed, Released};
@@ -23,8 +24,8 @@ pub struct MonitorID;
mod ffi;
pub fn get_available_monitors() -> RingBuf <MonitorID> {
- let rb = RingBuf::new();
- rb.push_back(MonitorId);
+ let mut rb = RingBuf::new();
+ rb.push_back(MonitorID);
rb
}