Skip to content

Commit a00538b

Browse files
committed
Fix return-in-block in cargo
Which is apparently not built as part of make check
1 parent b89a5af commit a00538b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/cargo/cargo.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,8 @@ fn install_uuid_specific(c: cargo, wd: str, src: str, uuid: str) {
657657
if vec::any(copy s.packages, { |p|
658658
if p.uuid == uuid {
659659
install_package(c, wd, p);
660-
ret true;
661-
}
662-
ret false;
660+
true
661+
} else { false }
663662
}) { ret; }
664663
}
665664
_ { }
@@ -673,9 +672,8 @@ fn install_named_specific(c: cargo, wd: str, src: str, name: str) {
673672
if vec::any(copy s.packages, { |p|
674673
if p.name == name {
675674
install_package(c, wd, p);
676-
ret true;
677-
}
678-
ret false;
675+
true
676+
} else { false }
679677
}) { ret; }
680678
}
681679
_ { }

0 commit comments

Comments
 (0)