Skip to content

Commit f311bb3

Browse files
committed
Fix benchmarks.
1 parent 84b0583 commit f311bb3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcore/pipes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ impl<T: Send> SharedChan<T>: Channel<T> {
11111111
}
11121112

11131113
/// Converts a `chan` into a `shared_chan`.
1114-
fn SharedChan<T:Send>(+c: Chan<T>) -> SharedChan<T> {
1114+
pub fn SharedChan<T:Send>(+c: Chan<T>) -> SharedChan<T> {
11151115
private::exclusive(move c)
11161116
}
11171117

src/test/bench/graph500-bfs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
231231
};
232232

233233
#[inline(always)]
234-
fn is_gray(c: color) -> bool {
235-
match c {
234+
fn is_gray(c: &color) -> bool {
235+
match *c {
236236
gray(_) => { true }
237237
_ => { false }
238238
}
@@ -282,7 +282,7 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
282282

283283
// Convert the results.
284284
do par::map(colors) |c| {
285-
match c {
285+
match *c {
286286
white => { -1i64 }
287287
black(parent) => { parent }
288288
_ => { fail ~"Found remaining gray nodes in BFS" }

0 commit comments

Comments
 (0)