]> git.lizzy.rs Git - rust.git/blobdiff - src/test/bench/shootout-fibo.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / bench / shootout-fibo.rs
index eec54198c04700f09a88edabaf3394cf10637d00..a363d19b3282f1ce1eecd1fe01baa60c18c82f0d 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 use std::os;
+use std::vec_ng::Vec;
 
 fn fib(n: int) -> int {
     if n < 2 {
@@ -25,8 +26,8 @@ fn main() {
     } else if args.len() <= 1u {
         vec!(~"", ~"30")
     } else {
-        args
+        args.move_iter().collect()
     };
-    let n = from_str::<int>(args[1]).unwrap();
+    let n = from_str::<int>(*args.get(1)).unwrap();
     println!("{}\n", fib(n));
 }