diff options
| author | bors <bors@rust-lang.org> | 2013-07-28 00:19:21 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-28 00:19:21 -0700 |
| commit | 20454da2db9903688dfd60b826cc704de79767bc (patch) | |
| tree | a20efcf40ca3c0473aca0b8c42383cd0bcf65ce1 /src/test/bench | |
| parent | 9325535b41fa5a7cfac697e86ae86bd1384542e6 (diff) | |
| parent | b147d70b08f93ea0a13a5331f413d547819b2f4c (diff) | |
| download | rust-20454da2db9903688dfd60b826cc704de79767bc.tar.gz rust-20454da2db9903688dfd60b826cc704de79767bc.zip | |
auto merge of #8069 : erickt/rust/maikklein, r=erickt
Good evening, This is a superset of @MaikKlein's #7969 commit, that I've fixed up to compile. I had a couple commits I wanted to do on top of @MaikKlein's work that I didn't want to bitrot.
Diffstat (limited to 'src/test/bench')
| -rw-r--r-- | src/test/bench/core-std.rs | 2 | ||||
| -rw-r--r-- | src/test/bench/shootout-fasta.rs | 4 | ||||
| -rw-r--r-- | src/test/bench/shootout-k-nucleotide-pipes.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/test/bench/core-std.rs b/src/test/bench/core-std.rs index 0d93bdb6f94..754181f9cd8 100644 --- a/src/test/bench/core-std.rs +++ b/src/test/bench/core-std.rs @@ -75,7 +75,7 @@ fn read_line() { .push_rel(&Path("src/test/bench/shootout-k-nucleotide.data")); for int::range(0, 3) |_i| { - let reader = result::unwrap(io::file_reader(&path)); + let reader = io::file_reader(&path).unwrap(); while !reader.eof() { reader.read_line(); } diff --git a/src/test/bench/shootout-fasta.rs b/src/test/bench/shootout-fasta.rs index 5d05817e512..4597212b390 100644 --- a/src/test/bench/shootout-fasta.rs +++ b/src/test/bench/shootout-fasta.rs @@ -124,8 +124,8 @@ fn main() { }; let writer = if os::getenv("RUST_BENCH").is_some() { - result::unwrap(io::file_writer(&Path("./shootout-fasta.data"), - [io::Truncate, io::Create])) + io::file_writer(&Path("./shootout-fasta.data"), + [io::Truncate, io::Create]).unwrap() } else { io::stdout() }; diff --git a/src/test/bench/shootout-k-nucleotide-pipes.rs b/src/test/bench/shootout-k-nucleotide-pipes.rs index 46b882f7b82..8b4664ac060 100644 --- a/src/test/bench/shootout-k-nucleotide-pipes.rs +++ b/src/test/bench/shootout-k-nucleotide-pipes.rs @@ -161,7 +161,7 @@ fn main() { // get to this massive data set, but include_bin! chokes on it (#2598) let path = Path(env!("CFG_SRC_DIR")) .push_rel(&Path("src/test/bench/shootout-k-nucleotide.data")); - result::unwrap(io::file_reader(&path)) + io::file_reader(&path).unwrap() } else { io::stdin() }; |
