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 a5ca0f2 commit 0db0f9dCopy full SHA for 0db0f9d
src/index.rs
@@ -157,7 +157,9 @@ impl LocalIndex {
157
.strip_prefix("index")
158
.map_err(|_err| anyhow::format_err!("invalid index path {entry_path:?}"))?;
159
let entry_path = self.root.join(rel_path);
160
- let entry = std::fs::read(&entry_path)?;
+ let Ok(entry) = std::fs::read(&entry_path) else {
161
+ return Ok(None);
162
+ };
163
let results = IndexKrate::from_slice(&entry)?;
164
Ok(Some(results))
165
}
0 commit comments