From b01a40d45930f97e83753150dc1b39b26b3b398f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 3 May 2013 16:14:29 -0400 Subject: [PATCH] rustpkg: Use the new `for` protocol --- src/librustpkg/workspace.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/librustpkg/workspace.rs b/src/librustpkg/workspace.rs index 15e2166b24ab..94b94d373e6b 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; +}