mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Use `Registry::crate_siouy
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
b909001d4b
commit
fc32a1ca61
1 changed files with 1 additions and 11 deletions
|
@ -496,17 +496,7 @@ impl PackageInfo {
|
||||||
.fetch_crate_matched(client, &name, version_req),
|
.fetch_crate_matched(client, &name, version_req),
|
||||||
)
|
)
|
||||||
.await?,
|
.await?,
|
||||||
{
|
opts.registry.crate_source()?,
|
||||||
let registry = format!("{}", opts.registry);
|
|
||||||
if registry == "https://index.crates.io/" {
|
|
||||||
CrateSource::cratesio_registry()
|
|
||||||
} else {
|
|
||||||
CrateSource {
|
|
||||||
source_type: SourceType::Registry,
|
|
||||||
url: MaybeOwned::Owned(Url::parse(®istry)?),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue