We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01b9e3 commit 569a167Copy full SHA for 569a167
src/index/mod.rs
@@ -95,7 +95,9 @@ impl Index {
95
.repository_url
96
.as_deref()
97
.unwrap_or("https://github.com/rust-lang/crates.io-index");
98
- crates_index::Index::with_path(&self.path, repo_url).map_err(Into::into)
+ let mut index = crates_index::Index::with_path(&self.path, repo_url)?;
99
+ index.update()?;
100
+ Ok(index)
101
}
102
103
pub fn api(&self) -> &Api {
0 commit comments