Skip to content

Commit 4bcfd9e

Browse files
committed
Ignore errors creating the git directory
Probably can't fail, but just in case
1 parent 8f04a65 commit 4bcfd9e

File tree

1 file changed

+1
-1
lines changed
  • src/cargo/sources/registry

1 file changed

+1
-1
lines changed

src/cargo/sources/registry/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ impl<'cfg> Source for RegistrySource<'cfg> {
826826
// IO errors in creating and marking it are ignored, e.g. in case we're on a
827827
// read-only filesystem.
828828
let registry_base = self.config.registry_base_path();
829-
let _ = registry_base.create_dir()?;
829+
let _ = registry_base.create_dir();
830830
exclude_from_backups_and_indexing(&registry_base.into_path_unlocked());
831831

832832
self.ops.block_until_ready()

0 commit comments

Comments
 (0)