File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ fn sync(
133
133
continue ;
134
134
}
135
135
if let Ok ( pkg) = packages. get_one ( pkg) {
136
- drop ( fs:: remove_dir_all ( pkg. manifest_path ( ) . parent ( ) . unwrap ( ) ) ) ;
136
+ drop ( fs:: remove_dir_all ( pkg. root ( ) ) ) ;
137
137
}
138
138
}
139
139
}
@@ -192,10 +192,7 @@ fn sync(
192
192
let mut tmp_buf = [ 0 ; 64 * 1024 ] ;
193
193
for ( id, pkg) in ids. iter ( ) {
194
194
// Next up, copy it to the vendor directory
195
- let src = pkg
196
- . manifest_path ( )
197
- . parent ( )
198
- . expect ( "manifest_path should point to a file" ) ;
195
+ let src = pkg. root ( ) ;
199
196
let max_version = * versions[ & id. name ( ) ] . iter ( ) . rev ( ) . next ( ) . unwrap ( ) . 0 ;
200
197
let dir_has_version_suffix = opts. versioned_dirs || id. version ( ) != max_version;
201
198
let dst_name = if dir_has_version_suffix {
@@ -329,7 +326,7 @@ fn cp_sources(
329
326
// the time and if we respect them (e.g. in git) then it'll
330
327
// probably mess with the checksums when a vendor dir is checked
331
328
// into someone else's source control
332
- Some ( ".gitattributes" ) | Some ( ".gitignore" ) | Some ( ".git" ) => continue ,
329
+ Some ( ".gitattributes" | ".gitignore" | ".git" ) => continue ,
333
330
334
331
// Temporary Cargo files
335
332
Some ( ".cargo-ok" ) => continue ,
You can’t perform that action at this time.
0 commit comments