File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ impl Layout {
152
152
if !root. as_path_unlocked ( ) . exists ( ) {
153
153
root. create_dir ( ) ?;
154
154
}
155
+ let dest_base = dest;
155
156
let dest = root. join ( dest) ;
156
157
// If the root directory doesn't already exist go ahead and create it
157
158
// here. Use this opportunity to exclude it from backups as well if the
@@ -169,7 +170,7 @@ impl Layout {
169
170
// easily sure that rename() will succeed (the new name needs to be on the same mount
170
171
// point as the old one).
171
172
let tempdir = TempFileBuilder :: new ( )
172
- . prefix ( "cargo-target" )
173
+ . prefix ( dest_base )
173
174
. tempdir_in ( root. as_path_unlocked ( ) ) ?;
174
175
exclude_from_backups ( & tempdir. path ( ) ) ;
175
176
// Previously std::fs::create_dir_all() (through paths::create_dir_all()) was used
You can’t perform that action at this time.
0 commit comments