about summary refs log tree commit diff
path: root/src/test/bench
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-03 15:29:35 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-11-03 15:55:59 -0800
commitee5d2383894944dcbb3b72a130ed0abaef0e8951 (patch)
tree2778103261b2a59c356b93781a5eb0158bb03640 /src/test/bench
parenta5aba685ba8ef7272520b705962abadf6f330b67 (diff)
parent8bd37e672411bf004a4ad64bb7d2160e455a72b0 (diff)
downloadrust-ee5d2383894944dcbb3b72a130ed0abaef0e8951.tar.gz
rust-ee5d2383894944dcbb3b72a130ed0abaef0e8951.zip
rollup merge of #18536 : bjz/strconv
Diffstat (limited to 'src/test/bench')
-rw-r--r--src/test/bench/shootout-pfib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/bench/shootout-pfib.rs b/src/test/bench/shootout-pfib.rs
index 425b2e3e714..7fa13d6074d 100644
--- a/src/test/bench/shootout-pfib.rs
+++ b/src/test/bench/shootout-pfib.rs
@@ -24,7 +24,6 @@ extern crate time;
 use std::os;
 use std::result::{Ok, Err};
 use std::task;
-use std::uint;
 
 fn fib(n: int) -> int {
     fn pfib(tx: &Sender<int>, n: int) {
@@ -102,8 +101,7 @@ fn main() {
     if opts.stress {
         stress(2);
     } else {
-        let max = uint::parse_bytes(args[1].as_bytes(), 10u).unwrap() as
-            int;
+        let max = from_str::<uint>(args[1].as_slice()).unwrap() as int;
 
         let num_trials = 10;