From 589c4d188a4f02a73d7f363d1b923427a3f2e973 Mon Sep 17 00:00:00 2001 From: Cam Jackson Date: Wed, 25 Mar 2015 15:54:57 +1100 Subject: [PATCH] Fix compilation by replacing "range" with ".." syntax --- src/cocoa/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs index 1da5ce14..5e13a779 100644 --- a/src/cocoa/mod.rs +++ b/src/cocoa/mod.rs @@ -419,7 +419,7 @@ impl Window { let count: NSUInteger = msg_send()(screens, selector("count")); let key = IdRef::new(NSString::alloc(nil).init_str("NSScreenNumber")); let mut matching_screen: Option = None; - for i in range(0, count) { + for i in (0..count) { let screen = msg_send()(screens, selector("objectAtIndex:"), i as NSUInteger); let device_description = NSScreen::deviceDescription(screen); let value = msg_send()(device_description, selector("objectForKey:"), *key);