diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-05-03 16:14:29 -0400 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-05-10 02:46:19 -0400 |
| commit | b01a40d45930f97e83753150dc1b39b26b3b398f (patch) | |
| tree | 0b6f0389c67b286c328f8071809676aea06148e8 | |
| parent | a87db3e2cd0aaaa513b13391d3ad21861d16e480 (diff) | |
| download | rust-b01a40d45930f97e83753150dc1b39b26b3b398f.tar.gz rust-b01a40d45930f97e83753150dc1b39b26b3b398f.zip | |
rustpkg: Use the new `for` protocol
| -rw-r--r-- | src/librustpkg/workspace.rs | 5 |
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; +} |
