Fix return-in-block in cargo
Which is apparently not built as part of make check
This commit is contained in:
parent
b89a5af2ab
commit
a00538b3b3
@ -657,9 +657,8 @@ fn install_uuid_specific(c: cargo, wd: str, src: str, uuid: str) {
|
||||
if vec::any(copy s.packages, { |p|
|
||||
if p.uuid == uuid {
|
||||
install_package(c, wd, p);
|
||||
ret true;
|
||||
}
|
||||
ret false;
|
||||
true
|
||||
} else { false }
|
||||
}) { ret; }
|
||||
}
|
||||
_ { }
|
||||
@ -673,9 +672,8 @@ fn install_named_specific(c: cargo, wd: str, src: str, name: str) {
|
||||
if vec::any(copy s.packages, { |p|
|
||||
if p.name == name {
|
||||
install_package(c, wd, p);
|
||||
ret true;
|
||||
}
|
||||
ret false;
|
||||
true
|
||||
} else { false }
|
||||
}) { ret; }
|
||||
}
|
||||
_ { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user