Skip to content

Commit fe131fc

Browse files
committed
refactor(ws): Inline target_dir() into build_dir()
1 parent 3a9c769 commit fe131fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cargo/core/workspace.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,10 @@ impl<'gctx> Workspace<'gctx> {
439439
}
440440

441441
pub fn build_dir(&self) -> Filesystem {
442-
self.build_dir.clone().unwrap_or_else(|| self.target_dir())
442+
self.build_dir
443+
.clone()
444+
.or_else(|| self.target_dir.clone())
445+
.unwrap_or_else(|| self.default_target_dir())
443446
}
444447

445448
fn default_target_dir(&self) -> Filesystem {

0 commit comments

Comments
 (0)