diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/main.rs b/src/main.rs index 212ab79e..fea14b5f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,13 +23,13 @@ // See https://msdn.microsoft.com/en-us/library/4cc7ya5b.aspx for more details. #![windows_subsystem = "windows"] -#[macro_use] -extern crate alacritty; - -#[macro_use] -extern crate log; #[cfg(target_os = "macos")] -extern crate dirs; +use dirs; + +#[cfg(windows)] +use winapi::um::wincon::{AttachConsole, FreeConsole, ATTACH_PARENT_PROCESS}; + +use log::{info, error}; use std::error::Error; use std::sync::Arc; @@ -40,18 +40,12 @@ use std::env; #[cfg(not(windows))] use std::os::unix::io::AsRawFd; -#[cfg(windows)] -extern crate winapi; -#[cfg(windows)] -use winapi::um::wincon::{AttachConsole, FreeConsole, ATTACH_PARENT_PROCESS}; - -use alacritty::cli; +#[cfg(target_os = "macos")] +use alacritty::locale; +use alacritty::{cli, event, die}; use alacritty::config::{self, Config, Error as ConfigError}; use alacritty::display::Display; -use alacritty::event; use alacritty::event_loop::{self, EventLoop, Msg}; -#[cfg(target_os = "macos")] -use alacritty::locale; use alacritty::logging::{self, LoggerProxy}; use alacritty::sync::FairMutex; use alacritty::term::Term; |