diff options
author | David Hewitt <1939362+davidhewitt@users.noreply.github.com> | 2019-10-31 21:10:30 +0000 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-10-31 22:10:30 +0100 |
commit | 3e5511a6935127362e809065093717339c70df04 (patch) | |
tree | c8ea54069ee6155a6776ecbe10174d88be9017d1 | |
parent | b3afb97fcd2abb928a6d821c5dae3e5b0e9e2fe4 (diff) | |
download | alacritty-3e5511a6935127362e809065093717339c70df04.tar.gz alacritty-3e5511a6935127362e809065093717339c70df04.zip |
Remove unused imports on Windows
-rw-r--r-- | alacritty/src/window.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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; |