From 21876e60aa59c88f179ea8d4e7f4d2169bf0255f Mon Sep 17 00:00:00 2001 From: logo4poop Date: Wed, 24 Jan 2024 13:49:48 -0500 Subject: [PATCH] Fixed No such file or directory\nProbably broke something --- src/cache_directory.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/cache_directory.rs b/src/cache_directory.rs index 15861e5..f6d5734 100644 --- a/src/cache_directory.rs +++ b/src/cache_directory.rs @@ -207,8 +207,6 @@ impl Cache { let mut zip = ZipArchive::new(archive).unwrap(); zip.extract(format!("{}/{to}", self.location))?; - fs::remove_file(archive_name)?; - Ok(()) } @@ -220,8 +218,6 @@ impl Cache { let mut arc = Archive::new(tar); arc.unpack(format!("{}/{to}", self.location))?; - fs::remove_file(archive_name)?; - Ok(()) }