Skip to content

Commit

Permalink
HTTP-based -> sparse
Browse files Browse the repository at this point in the history
Co-authored-by: Arlo Siemsen <arkixml@gmail.com>
  • Loading branch information
Eh2406 and arlosi committed Jun 17, 2022
1 parent a9faf49 commit 288856b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/http_remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<'cfg> HttpRegistry<'cfg> {
name: &str,
) -> CargoResult<HttpRegistry<'cfg>> {
if !config.cli_unstable().sparse_registry {
anyhow::bail!("usage of HTTP-based registries requires `-Z sparse-registry`");
anyhow::bail!("usage of sparse registries requires `-Z sparse-registry`");
}
let url = source_id.url().as_str();
// Ensure the url ends with a slash so we can concatenate paths.
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,7 @@ fn http_requires_z_flag() {

p.cargo("build")
.with_status(101)
.with_stderr_contains(" usage of HTTP-based registries requires `-Z sparse-registry`")
.with_stderr_contains(" usage of sparse registries requires `-Z sparse-registry`")
.run();
}

Expand Down

0 comments on commit 288856b

Please sign in to comment.