Skip to content

Commit 9f76ca6

Browse files
committed
rustpkg: Make code actually compile
oops.
1 parent c42f121 commit 9f76ca6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustc/metadata/filesearch.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ pub fn mk_filesearch(maybe_sysroot: &Option<@Path>,
3939
fn sysroot(&self) -> @Path { self.sysroot }
4040
fn for_each_lib_search_path(&self, f: &fn(&Path) -> bool) {
4141
debug!("filesearch: searching additional lib search paths");
42-
if !self.addl_lib_search_paths.each(f) {
43-
return;
44-
}
42+
// a little weird
43+
self.addl_lib_search_paths.each(f);
4544

4645
debug!("filesearch: searching target lib path");
4746
if !f(&make_target_lib_path(self.sysroot,
@@ -59,7 +58,7 @@ pub fn mk_filesearch(maybe_sysroot: &Option<@Path>,
5958
match get_rustpkg_lib_path() {
6059
result::Ok(ref p) => f(p),
6160
result::Err(_) => true
62-
}
61+
};
6362
}
6463
fn get_target_lib_path(&self) -> Path {
6564
make_target_lib_path(self.sysroot, self.target_triple)

0 commit comments

Comments
 (0)