diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-27 20:44:58 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-28 08:35:41 -0700 |
| commit | 42aed6bde2fb05a262e21334656cdf91f51744dd (patch) | |
| tree | 0b7c43f70001fe714a13f95df7e2807a8fdfb85b /src/test/bench | |
| parent | 24b1ce1daf9dbf66d04116d0549a48a7610bc614 (diff) | |
| download | rust-42aed6bde2fb05a262e21334656cdf91f51744dd.tar.gz rust-42aed6bde2fb05a262e21334656cdf91f51744dd.zip | |
std: Remove format_strbuf!()
This was only ever a transitionary macro.
Diffstat (limited to 'src/test/bench')
| -rw-r--r-- | src/test/bench/shootout-binarytrees.rs | 4 | ||||
| -rw-r--r-- | src/test/bench/shootout-chameneos-redux.rs | 4 | ||||
| -rw-r--r-- | src/test/bench/shootout-k-nucleotide-pipes.rs | 10 |
3 files changed, 8 insertions, 10 deletions
diff --git a/src/test/bench/shootout-binarytrees.rs b/src/test/bench/shootout-binarytrees.rs index db68edc73ba..1dc52166965 100644 --- a/src/test/bench/shootout-binarytrees.rs +++ b/src/test/bench/shootout-binarytrees.rs @@ -74,8 +74,8 @@ fn main() { let b = bottom_up_tree(&arena, -i, depth); chk += item_check(a) + item_check(b); } - format_strbuf!("{}\t trees of depth {}\t check: {}", - iterations * 2, depth, chk) + format!("{}\t trees of depth {}\t check: {}", + iterations * 2, depth, chk) }) }).collect::<Vec<Future<String>>>(); diff --git a/src/test/bench/shootout-chameneos-redux.rs b/src/test/bench/shootout-chameneos-redux.rs index 2c8b23f2acd..baf02feb5b8 100644 --- a/src/test/bench/shootout-chameneos-redux.rs +++ b/src/test/bench/shootout-chameneos-redux.rs @@ -134,9 +134,7 @@ fn creature( } } // log creatures met and evil clones of self - let report = format_strbuf!("{}{}", - creatures_met, - Number(evil_clones_met)); + let report = format!("{}{}", creatures_met, Number(evil_clones_met)); to_rendezvous_log.send(report); } diff --git a/src/test/bench/shootout-k-nucleotide-pipes.rs b/src/test/bench/shootout-k-nucleotide-pipes.rs index 8be6439d88c..e39c51dd73a 100644 --- a/src/test/bench/shootout-k-nucleotide-pipes.rs +++ b/src/test/bench/shootout-k-nucleotide-pipes.rs @@ -129,11 +129,11 @@ fn make_sequence_processor(sz: uint, let buffer = match sz { 1u => { sort_and_fmt(&freqs, total) } 2u => { sort_and_fmt(&freqs, total) } - 3u => { format_strbuf!("{}\t{}", find(&freqs, "GGT".to_string()), "GGT") } - 4u => { format_strbuf!("{}\t{}", find(&freqs, "GGTA".to_string()), "GGTA") } - 6u => { format_strbuf!("{}\t{}", find(&freqs, "GGTATT".to_string()), "GGTATT") } - 12u => { format_strbuf!("{}\t{}", find(&freqs, "GGTATTTTAATT".to_string()), "GGTATTTTAATT") } - 18u => { format_strbuf!("{}\t{}", find(&freqs, "GGTATTTTAATTTATAGT".to_string()), + 3u => { format!("{}\t{}", find(&freqs, "GGT".to_string()), "GGT") } + 4u => { format!("{}\t{}", find(&freqs, "GGTA".to_string()), "GGTA") } + 6u => { format!("{}\t{}", find(&freqs, "GGTATT".to_string()), "GGTATT") } + 12u => { format!("{}\t{}", find(&freqs, "GGTATTTTAATT".to_string()), "GGTATTTTAATT") } + 18u => { format!("{}\t{}", find(&freqs, "GGTATTTTAATTTATAGT".to_string()), "GGTATTTTAATTTATAGT") } _ => { "".to_string() } }; |
