Switch to tempfile
This commit is contained in:
parent
8a119c1483
commit
d3b0f87a49
|
@ -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]
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue