File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -306,12 +306,11 @@ pub fn args() -> Args {
306
306
// In general it looks like:
307
307
// res = Vec::new()
308
308
// let args = [[NSProcessInfo processInfo] arguments]
309
- // for i in range(0, [args count])
309
+ // for i in (0.. [args count])
310
310
// res.push([args objectAtIndex:i])
311
311
// res
312
312
#[ cfg( target_os = "ios" ) ]
313
313
pub fn args ( ) -> Args {
314
- use iter:: range;
315
314
use mem;
316
315
317
316
#[ link( name = "objc" ) ]
@@ -341,7 +340,7 @@ pub fn args() -> Args {
341
340
let args = objc_msgSend ( info, arguments_sel) ;
342
341
343
342
let cnt: int = mem:: transmute ( objc_msgSend ( args, count_sel) ) ;
344
- for i in range ( 0 , cnt) {
343
+ for i in ( 0 .. cnt) {
345
344
let tmp = objc_msgSend ( args, object_at_sel, i) ;
346
345
let utf_c_str: * const libc:: c_char =
347
346
mem:: transmute ( objc_msgSend ( tmp, utf8_sel) ) ;
You can’t perform that action at this time.
0 commit comments