Skip to content

Commit beb7471

Browse files
committed
Make moves explicit in cargo
1 parent ea5e3d2 commit beb7471

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/cargo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ fn configure(opts: Options) -> Cargo {
705705
~" or package manager to get it to work correctly");
706706
}
707707

708-
c
708+
move c
709709
}
710710

711711
fn for_each_package(c: &Cargo, b: fn(s: @Source, p: &Package)) {
@@ -1615,10 +1615,10 @@ fn dump_sources(c: &Cargo) {
16151615
_ => ()
16161616
}
16171617

1618-
hash.insert(copy k, json::Object(chash));
1618+
hash.insert(copy k, json::Object(move chash));
16191619
}
16201620

1621-
json::to_writer(writer, &json::Object(hash))
1621+
json::to_writer(writer, &json::Object(move hash))
16221622
}
16231623
result::Err(e) => {
16241624
error(fmt!("could not dump sources: %s", e));

0 commit comments

Comments
 (0)