Skip to content

Commit

Permalink
Fix build on 1.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Dec 7, 2020
1 parent 27bdd64 commit 9c8636b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ pub fn assert_index_path(cargo_dir: &Path, registry_url: &str) -> Result<PathBuf
Err(format!("{} (index directory for {}) not a directory", path.display(), registry_url).into())
}
}
Err(e) if e.kind() == IoErrorKind::NotFound => {
Err(ref e) if e.kind() == IoErrorKind::NotFound => {
fs::create_dir_all(&path).map_err(|e| format!("Couldn't create {} (index directory for {}): {}", path.display(), registry_url, e))?;
Ok(path)
},
Expand Down

0 comments on commit 9c8636b

Please sign in to comment.