@@ -376,7 +376,6 @@ use std::time::SystemTime;
376
376
use anyhow:: { bail, format_err, Context as _} ;
377
377
use cargo_util:: { paths, ProcessBuilder , Sha256 } ;
378
378
use filetime:: FileTime ;
379
- use itertools:: Either ;
380
379
use serde:: de;
381
380
use serde:: ser;
382
381
use serde:: { Deserialize , Serialize } ;
@@ -1938,10 +1937,10 @@ pub fn parse_dep_info(
1938
1937
ret. files . extend (
1939
1938
info. files
1940
1939
. into_iter ( )
1941
- . map ( |( ty, path) | make_absolute_path ( ty, pkg_root, path , target_root ) ) ,
1940
+ . map ( |( ty, path) | make_absolute_path ( ty, pkg_root, target_root , path ) ) ,
1942
1941
) ;
1943
1942
for ( ty, path, file_len, checksum) in info. checksum {
1944
- let path = make_absolute_path ( ty, pkg_root, path , target_root ) ;
1943
+ let path = make_absolute_path ( ty, pkg_root, target_root , path ) ;
1945
1944
ret. checksum
1946
1945
. insert ( path, ( file_len, Checksum :: from_str ( & checksum) ?) ) ;
1947
1946
}
@@ -1951,8 +1950,8 @@ pub fn parse_dep_info(
1951
1950
fn make_absolute_path (
1952
1951
ty : DepInfoPathType ,
1953
1952
pkg_root : & Path ,
1954
- path : PathBuf ,
1955
1953
target_root : & Path ,
1954
+ path : PathBuf ,
1956
1955
) -> PathBuf {
1957
1956
match ty {
1958
1957
DepInfoPathType :: PackageRootRelative => pkg_root. join ( path) ,
0 commit comments