about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/args.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/rt/args.rs b/src/libstd/rt/args.rs
index a173be64356..82b98fa7f9a 100644
--- a/src/libstd/rt/args.rs
+++ b/src/libstd/rt/args.rs
@@ -109,16 +109,16 @@ mod imp {
 
     fn with_lock<T>(f: || -> T) -> T {
         static mut lock: Mutex = MUTEX_INIT;
-        do (|| {
+        (|| {
             unsafe {
                 lock.lock();
                 f()
             }
-        }).finally {
+        }).finally(|| {
             unsafe {
                 lock.unlock();
             }
-        }
+        })
     }
 
     fn get_global_ptr() -> *mut Option<~~[~str]> {
@@ -127,9 +127,9 @@ mod imp {
 
     // Copied from `os`.
     unsafe fn load_argc_and_argv(argc: int, argv: **u8) -> ~[~str] {
-        do vec::from_fn(argc as uint) |i| {
+        vec::from_fn(argc as uint, |i| {
             str::raw::from_c_str(*(argv as **libc::c_char).offset(i as int))
-        }
+        })
     }
 
     #[cfg(test)]