diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-11-09 01:20:17 +0100 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2018-11-10 18:19:38 +0100 |
commit | a951ad2be9d033185dcceb83261b6ffcd57897d0 (patch) | |
tree | e6a3017092d624ad16ab1b581ac71f329aa44a40 | |
parent | 49e91041859bd032b0bb9d430a99e21071076531 (diff) | |
download | alacritty-a951ad2be9d033185dcceb83261b6ffcd57897d0.tar.gz alacritty-a951ad2be9d033185dcceb83261b6ffcd57897d0.zip |
Fix Windows build error
-rw-r--r-- | build.rs | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -20,9 +20,6 @@ extern crate reqwest; #[cfg(windows)] extern crate zip; -#[cfg(windows)] -use tempfile::TempDir; - extern crate gl_generator; use gl_generator::{Api, Fallbacks, GlobalGenerator, Profile, Registry}; @@ -66,8 +63,7 @@ fn main() { #[cfg(windows)] fn aquire_winpty_agent(out_path: &Path) { - let tmp_dir = TempDir::new("alacritty_build").unwrap(); - + let tmp_dir = tempfile::Builder::new().prefix("alacritty_build").tempdir().unwrap(); let mut response = reqwest::get(WINPTY_PACKAGE_URL).unwrap(); let mut file = OpenOptions::new() |