From 3e5511a6935127362e809065093717339c70df04 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Thu, 31 Oct 2019 21:10:30 +0000 Subject: [PATCH] Remove unused imports on Windows --- alacritty/src/window.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs index 7fa11c16..9ea411af 100644 --- a/alacritty/src/window.rs +++ b/alacritty/src/window.rs @@ -18,7 +18,9 @@ use std::fmt; #[cfg(not(any(target_os = "macos", windows)))] use std::os::raw::c_ulong; -use glutin::dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize}; +#[cfg(not(windows))] +use glutin::dpi::PhysicalPosition; +use glutin::dpi::{LogicalPosition, LogicalSize, PhysicalSize}; use glutin::event_loop::EventLoop; #[cfg(target_os = "macos")] use glutin::platform::macos::{RequestUserAttentionType, WindowBuilderExtMacOS, WindowExtMacOS}; @@ -36,6 +38,7 @@ use x11_dl::xlib::{Display as XDisplay, PropModeReplace, XErrorEvent, Xlib}; use alacritty_terminal::config::{Decorations, StartupMode, WindowConfig}; use alacritty_terminal::event::Event; use alacritty_terminal::gl; +#[cfg(not(windows))] use alacritty_terminal::term::{SizeInfo, Term}; use crate::config::Config;