deps: deal with deprecation in tempfile crate

This commit is contained in:
Wez Furlong committed 2025-05-17 09:21:11 -07:00
1 parent 0fb80ca503
commit ab6a92df74
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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" }
+1 -1
View File
@@ -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(_) => {