Skip to content

Commit 565591f

Browse files
committed
Remove use of CRATES_IO_INDEX in cargo-test-support.
Unfortunate duplication of the string, but I think it is unlikely to have any consequences.
1 parent 0ad3fb1 commit 565591f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::git::repo;
22
use crate::paths;
3-
use cargo::sources::CRATES_IO_INDEX;
43
use cargo_util::Sha256;
54
use flate2::write::GzEncoder;
65
use flate2::Compression;
@@ -585,7 +584,9 @@ impl Package {
585584
let registry_url = match (self.alternative, dep.registry.as_deref()) {
586585
(false, None) => None,
587586
(false, Some("alternative")) => Some(alt_registry_url().to_string()),
588-
(true, None) => Some(CRATES_IO_INDEX.to_string()),
587+
(true, None) => {
588+
Some("https://github.com/rust-lang/crates.io-index".to_string())
589+
}
589590
(true, Some("alternative")) => None,
590591
_ => panic!("registry_dep currently only supports `alternative`"),
591592
};

0 commit comments

Comments
 (0)