deps: deal with deprecation in tempfile crate
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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" }
|
||||
|
||||
@@ -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(_) => {
|
||||
|
||||
Reference in new issue
Block a user