Skip to content

Commit

Permalink
Make moves explicit in cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Oct 13, 2012
1 parent ea5e3d2 commit beb7471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cargo/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ fn configure(opts: Options) -> Cargo {
~" or package manager to get it to work correctly");
}

c
move c
}

fn for_each_package(c: &Cargo, b: fn(s: @Source, p: &Package)) {
Expand Down Expand Up @@ -1615,10 +1615,10 @@ fn dump_sources(c: &Cargo) {
_ => ()
}

hash.insert(copy k, json::Object(chash));
hash.insert(copy k, json::Object(move chash));
}

json::to_writer(writer, &json::Object(hash))
json::to_writer(writer, &json::Object(move hash))
}
result::Err(e) => {
error(fmt!("could not dump sources: %s", e));
Expand Down

0 comments on commit beb7471

Please sign in to comment.