]> git.lizzy.rs Git - rust.git/blobdiff - src/test/bench/shootout-threadring.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / bench / shootout-threadring.rs
index cfb950090a2cf78acadb7d6c97c47050b0168960..7ee294b8e632a750654990299404f00eaa82b476 100644 (file)
@@ -56,18 +56,17 @@ fn main() {
 
     let args = if os::getenv("RUST_BENCH").is_some() {
         vec!(~"", ~"2000000", ~"503")
-    }
-    else {
-        os::args()
+    } else {
+        os::args().move_iter().collect()
     };
     let token = if args.len() > 1u {
-        FromStr::from_str(args[1]).unwrap()
+        FromStr::from_str(*args.get(1)).unwrap()
     }
     else {
         1000
     };
     let n_tasks = if args.len() > 2u {
-        FromStr::from_str(args[2]).unwrap()
+        FromStr::from_str(*args.get(2)).unwrap()
     }
     else {
         503