Upgrade to latest Rust

This commit is contained in:
Sven Nilsen 2015-03-23 13:03:07 +01:00
parent a6485045f1
commit 9a5dd996cd

View file

@ -12,7 +12,7 @@ pub fn get_available_monitors() -> VecDeque<MonitorID> {
display::CGGetActiveDisplayList(max_displays, display::CGGetActiveDisplayList(max_displays,
&mut active_displays[0], &mut active_displays[0],
&mut display_count); &mut display_count);
for i in range(0, display_count as usize) { for i in 0..display_count as usize {
monitors.push_back(MonitorID(active_displays[i])); monitors.push_back(MonitorID(active_displays[i]));
} }
} }