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

Upgrade Cargo to 0.62.0 #304

Merged
merged 1 commit into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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