File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
src/cargo/sources/registry Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 4
4
//! [`RemoteRegistry`]: super::remote::RemoteRegistry
5
5
6
6
use anyhow:: Context ;
7
+ use cargo_util:: registry:: make_dep_path;
7
8
use cargo_util:: Sha256 ;
8
9
9
10
use crate :: core:: PackageId ;
10
- use crate :: sources:: registry:: make_dep_prefix;
11
11
use crate :: sources:: registry:: MaybeLock ;
12
12
use crate :: sources:: registry:: RegistryConfig ;
13
13
use crate :: util:: auth;
@@ -68,7 +68,7 @@ pub(super) fn download(
68
68
)
69
69
. unwrap ( ) ;
70
70
} else {
71
- let prefix = make_dep_prefix ( & * pkg. name ( ) ) ;
71
+ let prefix = make_dep_path ( & pkg. name ( ) , true ) ;
72
72
url = url
73
73
. replace ( CRATE_TEMPLATE , & * pkg. name ( ) )
74
74
. replace ( VERSION_TEMPLATE , & pkg. version ( ) . to_string ( ) )
Original file line number Diff line number Diff line change @@ -903,9 +903,3 @@ fn max_unpack_size(config: &Config, size: u64) -> u64 {
903
903
904
904
u64:: max ( max_unpack_size, size * max_compression_ratio as u64 )
905
905
}
906
-
907
- /// Constructs a path to a dependency in the registry index on filesystem.
908
- /// See [`cargo_util::registry::make_dep_path`] for more.
909
- fn make_dep_prefix ( name : & str ) -> String {
910
- cargo_util:: registry:: make_dep_path ( name, true )
911
- }
You can’t perform that action at this time.
0 commit comments