Skip to content

Commit 13435f0

Browse files
author
Elly Jones
committed
---
yaml --- r: 6778 b: refs/heads/master c: b7e30bc h: refs/heads/master v: v3
1 parent ac3b97b commit 13435f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 7bd003a1d0a992a2d70204095e454773f7afe37d
2+
refs/heads/master: b7e30bc4c5852fb7f840f2abd472fa1e68dcfd52

trunk/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)