]> git.proxmox.com Git - cargo.git/commitdiff
Ignore errors creating the git directory
authorMartin Pool <mbp@sourcefrog.net>
Tue, 26 Apr 2022 02:16:46 +0000 (19:16 -0700)
committerMartin Pool <mbp@sourcefrog.net>
Tue, 26 Apr 2022 02:16:46 +0000 (19:16 -0700)
Probably can't fail, but just in case

src/cargo/sources/registry/mod.rs

index 6c47eac2ffc8e27b448b23a1d84809ce40f47da3..fc9c29510c183b314f06f63f2e0f9c5f1453ca91 100644 (file)
@@ -826,7 +826,7 @@ impl<'cfg> Source for RegistrySource<'cfg> {
         // IO errors in creating and marking it are ignored, e.g. in case we're on a
         // read-only filesystem.
         let registry_base = self.config.registry_base_path();
-        let _ = registry_base.create_dir()?;
+        let _ = registry_base.create_dir();
         exclude_from_backups_and_indexing(&registry_base.into_path_unlocked());
 
         self.ops.block_until_ready()