1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix Windows build error

This commit is contained in:
Christian Duerr 2018-11-09 01:20:17 +01:00
parent 49e9104185
commit a951ad2be9
No known key found for this signature in database
GPG key ID: 85CDAE3C164BA7B4

View file

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