diff --git a/Cargo.toml b/Cargo.toml index 4229e266b..ab0c4f745 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -212,7 +212,7 @@ strsim = "0.11" syn = "1.0" tabout = { path = "tabout" } tar = "0.4" -tempfile = "3.16" +tempfile = "3.20" terminfo = "0.9" termios = "0.3" termwiz = { version="0.24.0", path = "termwiz" } diff --git a/lua-api-crates/plugin/src/lib.rs b/lua-api-crates/plugin/src/lib.rs index 6bbbd06ba..66581fc2d 100644 --- a/lua-api-crates/plugin/src/lib.rs +++ b/lua-api-crates/plugin/src/lib.rs @@ -160,7 +160,7 @@ impl RepoSpec { let target_dir = TempDir::new_in(&plugins_dir)?; log::debug!("Cloning {} into temporary dir {target_dir:?}", self.url); Repository::clone_recurse(&self.url, target_dir.path())?; - let target_dir = target_dir.into_path(); + let target_dir = target_dir.keep(); let checkout_path = self.checkout_path(); match std::fs::rename(&target_dir, &checkout_path) { Ok(_) => {