]> git.lizzy.rs Git - rust.git/blobdiff - src/test/bench/shootout-nbody.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / bench / shootout-nbody.rs
index 72ae6c4d0146332077055d57625c7d70ed9bfb21..b4c96a48ded75665a1ec265b8abdd1d2ee3909ad 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 use std::os;
+use std::vec_ng::Vec;
 
 static PI: f64 = 3.141592653589793;
 static SOLAR_MASS: f64 = 4.0 * PI * PI;
@@ -152,10 +153,10 @@ fn main() {
     } else if args.len() <= 1u {
         vec!(~"", ~"1000")
     } else {
-        args
+        args.move_iter().collect()
     };
 
-    let n: i32 = from_str::<i32>(args[1]).unwrap();
+    let n: i32 = from_str::<i32>(*args.get(1)).unwrap();
     let mut bodies = BODIES;
 
     offset_momentum(&mut bodies);