We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678f5c8 commit 2d592c2Copy full SHA for 2d592c2
src/cargo/core/workspace.rs
@@ -450,17 +450,13 @@ impl<'gctx> Workspace<'gctx> {
450
pub fn target_dir(&self) -> Filesystem {
451
self.target_dir
452
.clone()
453
- .unwrap_or_else(|| self.default_target_dir())
+ .unwrap_or_else(|| Filesystem::new(self.root().join("target")))
454
}
455
456
pub fn build_dir(&self) -> Filesystem {
457
self.build_dir.clone().unwrap_or_else(|| self.target_dir())
458
459
460
- fn default_target_dir(&self) -> Filesystem {
461
- Filesystem::new(self.root().join("target"))
462
- }
463
-
464
/// Returns the root `[replace]` section of this workspace.
465
///
466
/// This may be from a virtual crate or an actual crate.
0 commit comments