From 9bb41bf2773a353804ab710bb65c0e21a4c22a20 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sat, 21 Feb 2015 23:59:37 +1100 Subject: Fixed errors on latest nightly, RingBuf -> VecDeque --- src/cocoa/monitor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cocoa/monitor.rs') diff --git a/src/cocoa/monitor.rs b/src/cocoa/monitor.rs index 912c02d..47adc03 100644 --- a/src/cocoa/monitor.rs +++ b/src/cocoa/monitor.rs @@ -1,10 +1,10 @@ use core_graphics::display; -use std::collections::RingBuf; +use std::collections::VecDeque; pub struct MonitorID(u32); -pub fn get_available_monitors() -> RingBuf { - let mut monitors = RingBuf::new(); +pub fn get_available_monitors() -> VecDeque { + let mut monitors = VecDeque::new(); unsafe { let max_displays = 10u32; let mut active_displays = [0u32; 10]; @@ -12,7 +12,7 @@ pub fn get_available_monitors() -> RingBuf { display::CGGetActiveDisplayList(max_displays, &mut active_displays[0], &mut display_count); - for i in range(0us, display_count as usize) { + for i in range(0, display_count as usize) { monitors.push_back(MonitorID(active_displays[i])); } } -- cgit v1.2.3