Skip to content

Commit 5ee83a2

Browse files
committed
refactor(ws): Consistently grab root manifest like default_target_dir
1 parent e9dced1 commit 5ee83a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cargo/core/workspace.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,7 @@ impl<'gctx> Workspace<'gctx> {
226226
}
227227

228228
ws.target_dir = gctx.target_dir()?;
229-
ws.build_dir = gctx.build_dir(
230-
ws.root_manifest
231-
.as_ref()
232-
.unwrap_or(&manifest_path.to_path_buf()),
233-
)?;
229+
ws.build_dir = gctx.build_dir(ws.root_manifest())?;
234230

235231
ws.custom_metadata = ws
236232
.load_workspace_config()?

0 commit comments

Comments
 (0)