Skip to content

Commit b01a40d

Browse files
committed
rustpkg: Use the new for protocol
1 parent a87db3e commit b01a40d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustpkg/workspace.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use path_util::{rust_path, workspace_contains_package_id};
1414
use util::PkgId;
1515
use core::path::Path;
1616

17-
pub fn pkg_parent_workspaces(pkgid: PkgId, action: &fn(&Path) -> bool) {
17+
pub fn pkg_parent_workspaces(pkgid: PkgId, action: &fn(&Path) -> bool) -> bool {
1818
// Using the RUST_PATH, find workspaces that contain
1919
// this package ID
2020
let workspaces = rust_path().filtered(|ws|
@@ -31,4 +31,5 @@ pub fn pkg_parent_workspaces(pkgid: PkgId, action: &fn(&Path) -> bool) {
3131
break;
3232
}
3333
}
34-
}
34+
return true;
35+
}

0 commit comments

Comments
 (0)