Skip to content

Commit c35a858

Browse files
committed
Fix broken tests
1 parent ebc1903 commit c35a858

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/run-pass/hashmap-memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ mod map_reduce {
4141

4242
fn start_mappers(ctrl: Chan<ctrl_proto>, inputs: ~[~str]) {
4343
for inputs.each |i| {
44-
let i = *i;
45-
task::spawn(|move i| map_task(ctrl, i) );
44+
let i = copy *i;
45+
task::spawn(|move i| map_task(ctrl, copy i) );
4646
}
4747
}
4848

src/test/run-pass/issue-2804.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn add_interfaces(store: int, managed_ip: ~str, device: std::map::HashMap<~str,
6767
std::json::List(interfaces) =>
6868
{
6969
do vec::map(interfaces) |interface| {
70-
add_interface(store, managed_ip, *interface)
70+
add_interface(store, copy managed_ip, copy *interface)
7171
}
7272
}
7373
_ =>

0 commit comments

Comments
 (0)