From 0389c834e4b456ad6dcce4f687c69ab0e84beafa Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sun, 22 Feb 2015 00:40:23 +1100 Subject: RingBuf -> VecDeque for other platforms, as_slice_with_nul -> as_bytes_with_nul --- src/x11/window/monitor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/x11/window/monitor.rs') diff --git a/src/x11/window/monitor.rs b/src/x11/window/monitor.rs index 3c188b6..77ac4ec 100644 --- a/src/x11/window/monitor.rs +++ b/src/x11/window/monitor.rs @@ -1,11 +1,11 @@ use std::ptr; -use std::collections::RingBuf; +use std::collections::VecDeque; use super::super::ffi; use super::ensure_thread_init; pub struct MonitorID(pub u32); -pub fn get_available_monitors() -> RingBuf { +pub fn get_available_monitors() -> VecDeque { ensure_thread_init(); let nb_monitors = unsafe { let display = ffi::XOpenDisplay(ptr::null()); @@ -17,7 +17,7 @@ pub fn get_available_monitors() -> RingBuf { nb_monitors }; - let mut monitors = RingBuf::new(); + let mut monitors = VecDeque::new(); monitors.extend(range(0, nb_monitors).map(|i| MonitorID(i as u32))); monitors } -- cgit v1.2.3