Switch to tempfile

This commit is contained in:
Michael Vines 2020-10-11 10:00:12 -07:00 committed by mergify[bot]
parent 8a119c1483
commit d3b0f87a49
2 changed files with 3 additions and 3 deletions

View File

@ -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]

View File

@ -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();