about summary refs log tree commit diff
path: root/src/test/bench
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-09-28 18:26:21 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-09-28 18:26:36 -0700
commitf311bb38cd24a8c0f730ae104b6bdea8fb2880c5 (patch)
tree6fe738378f92b34c5bddb50288f060ca78817510 /src/test/bench
parent84b058306472810edb4bc215cea621f1890b8b02 (diff)
downloadrust-f311bb38cd24a8c0f730ae104b6bdea8fb2880c5.tar.gz
rust-f311bb38cd24a8c0f730ae104b6bdea8fb2880c5.zip
Fix benchmarks.
Diffstat (limited to 'src/test/bench')
-rw-r--r--src/test/bench/graph500-bfs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bench/graph500-bfs.rs b/src/test/bench/graph500-bfs.rs
index 27e5c696e59..d6a62363280 100644
--- a/src/test/bench/graph500-bfs.rs
+++ b/src/test/bench/graph500-bfs.rs
@@ -231,8 +231,8 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
     };
 
     #[inline(always)]
-    fn is_gray(c: color) -> bool {
-        match c {
+    fn is_gray(c: &color) -> bool {
+        match *c {
           gray(_) => { true }
           _ => { false }
         }
@@ -282,7 +282,7 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
 
     // Convert the results.
     do par::map(colors) |c| {
-        match c {
+        match *c {
           white => { -1i64 }
           black(parent) => { parent }
           _ => { fail ~"Found remaining gray nodes in BFS" }