From ab6a92df7406fe4b1b4cb8b4bb16c8f5aa25943e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 17 May 2025 06:48:51 -0700 Subject: [PATCH] deps: deal with deprecation in tempfile crate --- Cargo.toml | 2 +- lua-api-crates/plugin/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(_) => {