about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-05-03 16:14:29 -0400
committerAlex Crichton <alex@alexcrichton.com>2013-05-10 02:46:19 -0400
commitb01a40d45930f97e83753150dc1b39b26b3b398f (patch)
tree0b6f0389c67b286c328f8071809676aea06148e8
parenta87db3e2cd0aaaa513b13391d3ad21861d16e480 (diff)
downloadrust-b01a40d45930f97e83753150dc1b39b26b3b398f.tar.gz
rust-b01a40d45930f97e83753150dc1b39b26b3b398f.zip
rustpkg: Use the new `for` protocol
-rw-r--r--src/librustpkg/workspace.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustpkg/workspace.rs b/src/librustpkg/workspace.rs
index 15e2166b24a..94b94d373e6 100644
--- a/src/librustpkg/workspace.rs
+++ b/src/librustpkg/workspace.rs
@@ -14,7 +14,7 @@ use path_util::{rust_path, workspace_contains_package_id};
 use util::PkgId;
 use core::path::Path;
 
-pub fn pkg_parent_workspaces(pkgid: PkgId, action: &fn(&Path) -> bool) {
+pub fn pkg_parent_workspaces(pkgid: PkgId, action: &fn(&Path) -> bool) -> bool {
     // Using the RUST_PATH, find workspaces that contain
     // this package ID
     let workspaces = rust_path().filtered(|ws|
@@ -31,4 +31,5 @@ pub fn pkg_parent_workspaces(pkgid: PkgId, action: &fn(&Path) -> bool) {
             break;
         }
     }
-}
\ No newline at end of file
+    return true;
+}