From 9a5dd996cd69eb504bdc28ac15ff7c07c2d26a7a Mon Sep 17 00:00:00 2001 From: Sven Nilsen Date: Mon, 23 Mar 2015 13:03:07 +0100 Subject: [PATCH] Upgrade to latest Rust --- src/cocoa/monitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa/monitor.rs b/src/cocoa/monitor.rs index 47adc031..11d12372 100644 --- a/src/cocoa/monitor.rs +++ b/src/cocoa/monitor.rs @@ -12,7 +12,7 @@ pub fn get_available_monitors() -> VecDeque { display::CGGetActiveDisplayList(max_displays, &mut active_displays[0], &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])); } }