Skip to content

Commit

Permalink
cargo: fix remaining warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Elly Jones committed Dec 17, 2011
1 parent 7bd003a commit b7e30bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cargo/cargo.rs
Expand Up @@ -293,7 +293,7 @@ fn configure() -> cargo {

fn for_each_package(c: cargo, b: block(source, package)) {
c.sources.values({ |v|
for p in v.packages {
for p in copy v.packages {
b(v, p);
}
})
Expand Down Expand Up @@ -430,7 +430,7 @@ fn install_named(c: cargo, wd: str, name: str) {
fn install_uuid_specific(c: cargo, wd: str, src: str, uuid: str) {
alt c.sources.find(src) {
some(s) {
if vec::any(s.packages, { |p|
if vec::any(copy s.packages, { |p|
if p.uuid == uuid {
install_package(c, wd, p);
ret true;
Expand All @@ -446,7 +446,7 @@ fn install_uuid_specific(c: cargo, wd: str, src: str, uuid: str) {
fn install_named_specific(c: cargo, wd: str, src: str, name: str) {
alt c.sources.find(src) {
some(s) {
if vec::any(s.packages, { |p|
if vec::any(copy s.packages, { |p|
if p.name == name {
install_package(c, wd, p);
ret true;
Expand Down

0 comments on commit b7e30bc

Please sign in to comment.