Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Auto merge of #304 - JohnTitor:cargo-0.62.0, r=JohnTitor
Browse files Browse the repository at this point in the history
Upgrade Cargo to 0.62.0

Address the changes on rust-lang/cargo#10064
  • Loading branch information
bors committed May 23, 2022
2 parents 17b0682 + b7c2c17 commit 7be536b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
15 changes: 2 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2018"
exclude = ["/ci/*", "/.github/*", "/doc"]

[dependencies]
cargo = "0.61"
cargo = "0.62"
crates-io = "0.34" # Keep in sync with version pulled by Cargo
curl = "0.4.43"
env_logger = "0.9"
Expand Down
4 changes: 2 additions & 2 deletions src/bin/cargo-semver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,13 @@ impl<'a> WorkInfo<'a> {
) -> Result<WorkInfo<'a>> {
let source = {
let source_id = SourceId::crates_io(config)?;
let mut source = RegistrySource::remote(source_id, &HashSet::new(), config);
let mut source = RegistrySource::remote(source_id, &HashSet::new(), config)?;

debug!("source id loaded: {:?}", source_id);

if !config.offline() {
let _lock = config.acquire_package_cache_lock()?;
source.update()?;
source.invalidate_cache();
}

Box::new(source)
Expand Down

0 comments on commit 7be536b

Please sign in to comment.