Skip to content

Commit b7e30bc

Browse files
author
Elly Jones
committed
cargo: fix remaining warnings
1 parent 7bd003a commit b7e30bc

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
@@ -293,7 +293,7 @@ fn configure() -> cargo {
293293

294294
fn for_each_package(c: cargo, b: block(source, package)) {
295295
c.sources.values({ |v|
296-
for p in v.packages {
296+
for p in copy v.packages {
297297
b(v, p);
298298
}
299299
})
@@ -430,7 +430,7 @@ fn install_named(c: cargo, wd: str, name: str) {
430430
fn install_uuid_specific(c: cargo, wd: str, src: str, uuid: str) {
431431
alt c.sources.find(src) {
432432
some(s) {
433-
if vec::any(s.packages, { |p|
433+
if vec::any(copy s.packages, { |p|
434434
if p.uuid == uuid {
435435
install_package(c, wd, p);
436436
ret true;
@@ -446,7 +446,7 @@ fn install_uuid_specific(c: cargo, wd: str, src: str, uuid: str) {
446446
fn install_named_specific(c: cargo, wd: str, src: str, name: str) {
447447
alt c.sources.find(src) {
448448
some(s) {
449-
if vec::any(s.packages, { |p|
449+
if vec::any(copy s.packages, { |p|
450450
if p.name == name {
451451
install_package(c, wd, p);
452452
ret true;

0 commit comments

Comments
 (0)