summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-02-08 17:08:02 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-02-08 19:12:51 -0500
commita32c5c73ee6aad9cb4b2e06867eafa09bc1ece3a (patch)
tree2aad1f0f2746fa829df4e00d54f7fae68fa38bd0 /src/test
parentf529af0d5020a1d635a18304f138c9247fd10ec5 (diff)
downloadrust-a32c5c73ee6aad9cb4b2e06867eafa09bc1ece3a.tar.gz
rust-a32c5c73ee6aad9cb4b2e06867eafa09bc1ece3a.zip
oldmap: get rid of legacy _ref suffixes
Diffstat (limited to 'src/test')
-rw-r--r--src/test/bench/shootout-k-nucleotide-pipes.rs2
-rw-r--r--src/test/bench/shootout-mandelbrot.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/bench/shootout-k-nucleotide-pipes.rs b/src/test/bench/shootout-k-nucleotide-pipes.rs
index 811f39e4343..62341f08ce3 100644
--- a/src/test/bench/shootout-k-nucleotide-pipes.rs
+++ b/src/test/bench/shootout-k-nucleotide-pipes.rs
@@ -49,7 +49,7 @@ fn sort_and_fmt(mm: HashMap<~[u8], uint>, total: uint) -> ~str {
    let mut pairs = ~[];
 
    // map -> [(k,%)]
-   for mm.each_ref |&key, &val| {
+   for mm.each |&key, &val| {
       pairs.push((key, pct(val, total)));
    }
 
diff --git a/src/test/bench/shootout-mandelbrot.rs b/src/test/bench/shootout-mandelbrot.rs
index 5888dab3bb9..b19454ec230 100644
--- a/src/test/bench/shootout-mandelbrot.rs
+++ b/src/test/bench/shootout-mandelbrot.rs
@@ -134,7 +134,7 @@ fn writer(path: ~str, pport: pipes::Port<Line>, size: uint)
             done += 1_u;
             let mut prev = done;
             while prev <= i {
-                if lines.contains_key_ref(&prev) {
+                if lines.contains_key(&prev) {
                     debug!("WS %u", prev);
                     cout.write(lines.get(&prev));
                     done += 1_u;