squelch warnings in tests
This commit is contained in:
parent
6c6ad229a3
commit
dd8f76c619
|
@ -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);
|
||||
|
|
|
@ -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); }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue