We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad3fb1 commit 565591fCopy full SHA for 565591f
crates/cargo-test-support/src/registry.rs
@@ -1,6 +1,5 @@
1
use crate::git::repo;
2
use crate::paths;
3
-use cargo::sources::CRATES_IO_INDEX;
4
use cargo_util::Sha256;
5
use flate2::write::GzEncoder;
6
use flate2::Compression;
@@ -585,7 +584,9 @@ impl Package {
585
584
let registry_url = match (self.alternative, dep.registry.as_deref()) {
586
(false, None) => None,
587
(false, Some("alternative")) => Some(alt_registry_url().to_string()),
588
- (true, None) => Some(CRATES_IO_INDEX.to_string()),
+ (true, None) => {
+ Some("https://github.com/rust-lang/crates.io-index".to_string())
589
+ }
590
(true, Some("alternative")) => None,
591
_ => panic!("registry_dep currently only supports `alternative`"),
592
};
0 commit comments