diff --git a/src/android/mod.rs b/src/android/mod.rs index 7df0becf..7e1c35d0 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 { - let rb = RingBuf::new(); - rb.push_back(MonitorId); + let mut rb = RingBuf::new(); + rb.push_back(MonitorID); rb }