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 0d5370a commit 282a3e7Copy full SHA for 282a3e7
src/cargo/core/workspace.rs
@@ -381,7 +381,11 @@ impl<'cfg> Workspace<'cfg> {
381
pub fn target_dir(&self) -> Filesystem {
382
self.target_dir
383
.clone()
384
- .unwrap_or_else(|| Filesystem::new(self.root().join("target")))
+ .unwrap_or_else(|| self.default_target_dir())
385
+ }
386
+
387
+ fn default_target_dir(&self) -> Filesystem {
388
+ Filesystem::new(self.root().join("target"))
389
}
390
391
/// Returns the root `[replace]` section of this workspace.
0 commit comments