From a951ad2be9d033185dcceb83261b6ffcd57897d0 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 9 Nov 2018 01:20:17 +0100 Subject: [PATCH] Fix Windows build error --- build.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.rs b/build.rs index 6ebe23f3..22799c95 100644 --- a/build.rs +++ b/build.rs @@ -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()