From d3b0f87a49b9a7718c9d33c7a89f874453d8878e Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 11 Oct 2020 10:00:12 -0700 Subject: [PATCH] Switch to tempfile --- install/Cargo.toml | 2 +- install/src/command.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install/Cargo.toml b/install/Cargo.toml index 110ff2ac0..5875c3a2f 100644 --- a/install/Cargo.toml +++ b/install/Cargo.toml @@ -32,7 +32,7 @@ solana-sdk = { path = "../sdk", version = "1.5.0" } solana-version = { path = "../version", version = "1.5.0" } semver = "0.9.0" tar = "0.4.28" -tempdir = "0.3.7" +tempfile = "3.1.0" url = "2.1.1" [target."cfg(windows)".dependencies] diff --git a/install/src/command.rs b/install/src/command.rs index 9d5ecbe94..12ead4594 100644 --- a/install/src/command.rs +++ b/install/src/command.rs @@ -23,7 +23,7 @@ use std::{ sync::mpsc, time::{Duration, Instant, SystemTime}, }; -use tempdir::TempDir; +use tempfile::TempDir; use url::Url; #[derive(Deserialize, Debug)] @@ -84,7 +84,7 @@ fn download_to_temp( let url = Url::parse(url).map_err(|err| format!("Unable to parse {}: {}", url, err))?; - let temp_dir = TempDir::new(clap::crate_name!())?; + let temp_dir = TempDir::new()?; let temp_file = temp_dir.path().join("download"); let client = reqwest::blocking::Client::new();