about summary refs log tree commit diff
path: root/src/libcore/vec.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-09-10 13:16:34 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-09-10 13:36:54 -0700
commita07ea73bdbc023f80efe809388ed9299ba76bcb8 (patch)
tree61f8567ffbe4285ed41bdf18d205331c98849726 /src/libcore/vec.rs
parent04f17634091587053ae7d7d35d2318406e8d7d0d (diff)
Make moves explicit in task; also make option::unwrap take its argument by move
Diffstat (limited to 'src/libcore/vec.rs')
-rw-r--r--src/libcore/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs
index 0907041809a..e242f619ccd 100644
--- a/src/libcore/vec.rs
+++ b/src/libcore/vec.rs
@@ -1799,7 +1799,7 @@ mod unsafe {
             let mut box2 = None;
             box2 <-> box;
             rusti::move_val_init(*ptr::mut_offset(p, i),
-                                 option::unwrap(move box2));
+                                 option::unwrap(box2));
         }
     }