Skip to content

Commit 6916f11

Browse files
sypharNemo157
authored andcommitted
upgrade crates-index-diff
1 parent 3199d0a commit 6916f11

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ log = "0.4"
2727
regex = "1"
2828
structopt = "0.3"
2929
crates-index = { version = "0.15.1", optional = true }
30-
crates-index-diff = "7.1.1"
30+
crates-index-diff = "8.0.0"
3131
reqwest = { version = "0.11", features = ["blocking", "json"] } # TODO: Remove blocking when async is ready
3232
semver = { version = "0.9", features = ["serde"] }
3333
slug = "=0.1.1"

src/index/mod.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ impl Index {
4444
let url = repository_url.clone();
4545
let diff = crates_index_diff::Index::from_path_or_cloned_with_options(
4646
&path,
47-
crates_index_diff::CloneOptions { repository_url },
47+
crates_index_diff::CloneOptions {
48+
repository_url,
49+
..Default::default()
50+
},
4851
)
4952
.context("initialising registry index repository")?;
5053

@@ -75,7 +78,10 @@ impl Index {
7578
let options = self
7679
.repository_url
7780
.clone()
78-
.map(|repository_url| crates_index_diff::CloneOptions { repository_url })
81+
.map(|repository_url| crates_index_diff::CloneOptions {
82+
repository_url,
83+
..Default::default()
84+
})
7985
.unwrap_or_default();
8086
let diff = crates_index_diff::Index::from_path_or_cloned_with_options(&self.path, options)
8187
.context("re-opening registry index for diff")?;

0 commit comments

Comments
 (0)