squelch warnings in tests

This commit is contained in:
Niko Matsakis 2012-06-01 11:10:27 -07:00
parent 6c6ad229a3
commit dd8f76c619
2 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ mod tests {
#[test]
fn auto_share_arc() {
let v = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let (res, arc_c) = shared_arc(v);
let (_res, arc_c) = shared_arc(v);
let p = port();
let c = chan(p);

View File

@ -529,7 +529,7 @@ mod tests {
let testfn = fn~() { };
let mut tests = [];
for vec::each(names) {|name|
let test = {name: name, fn: testfn, ignore: false,
let test = {name: name, fn: copy testfn, ignore: false,
should_fail: false};
tests += [test];
}
@ -546,7 +546,7 @@ mod tests {
let pairs = vec::zip(expected, filtered);
for vec::each(pairs) {|p| let (a, b) = p; assert (a == b.name); }
for vec::each(pairs) {|p| let (a, b) = copy p; assert (a == b.name); }
}
}