From 780ae67c7186bf26c85abed9a26a53cc29fc05cf Mon Sep 17 00:00:00 2001 From: Carsten Kragelund Date: Thu, 25 May 2023 00:41:03 +0200 Subject: [PATCH] fix(plugin): drop Repository, so that renaming succeeds on Windows --- lua-api-crates/plugin/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua-api-crates/plugin/src/lib.rs b/lua-api-crates/plugin/src/lib.rs index 92c63cc5d..0eb7be47b 100644 --- a/lua-api-crates/plugin/src/lib.rs +++ b/lua-api-crates/plugin/src/lib.rs @@ -143,7 +143,7 @@ impl RepoSpec { std::fs::create_dir_all(&plugins_dir)?; let target_dir = TempDir::new_in(&plugins_dir)?; log::debug!("Cloning {} into temporary dir {target_dir:?}", self.url); - let _repo = Repository::clone_recurse(&self.url, target_dir.path())?; + Repository::clone_recurse(&self.url, target_dir.path())?; let target_dir = target_dir.into_path(); let checkout_path = self.checkout_path(); match std::fs::rename(&target_dir, &checkout_path) {