diff options
Diffstat (limited to 'alacritty_terminal/src/tty')
-rw-r--r-- | alacritty_terminal/src/tty/unix.rs | 12 | ||||
-rw-r--r-- | alacritty_terminal/src/tty/windows/conpty.rs | 4 |
2 files changed, 6 insertions, 10 deletions
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs index a3c35f95..483333e7 100644 --- a/alacritty_terminal/src/tty/unix.rs +++ b/alacritty_terminal/src/tty/unix.rs @@ -5,15 +5,12 @@ use std::borrow::Cow; use std::env; use std::ffi::CStr; use std::fs::File; -use std::io; use std::mem::MaybeUninit; -use std::os::unix::{ - io::{AsRawFd, FromRawFd, RawFd}, - process::CommandExt, -}; +use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; +use std::os::unix::process::CommandExt; use std::process::{Child, Command, Stdio}; -use std::ptr; use std::sync::atomic::{AtomicI32, AtomicUsize, Ordering}; +use std::{io, ptr}; use libc::{self, c_int, pid_t, winsize, TIOCSCTTY}; use log::error; @@ -21,7 +18,8 @@ use mio::unix::EventedFd; use nix::pty::openpty; #[cfg(any(target_os = "linux", target_os = "macos"))] use nix::sys::termios::{self, InputFlags, SetArg}; -use signal_hook::{self as sighook, iterator::Signals}; +use signal_hook as sighook; +use signal_hook::iterator::Signals; use crate::config::{Config, Program}; use crate::event::OnResize; diff --git a/alacritty_terminal/src/tty/windows/conpty.rs b/alacritty_terminal/src/tty/windows/conpty.rs index 919bd00f..002022ea 100644 --- a/alacritty_terminal/src/tty/windows/conpty.rs +++ b/alacritty_terminal/src/tty/windows/conpty.rs @@ -1,8 +1,6 @@ -use std::i16; use std::io::Error; -use std::mem; use std::os::windows::io::IntoRawHandle; -use std::ptr; +use std::{i16, mem, ptr}; use mio_anonymous_pipes::{EventedAnonRead, EventedAnonWrite}; use winapi::shared::basetsd::{PSIZE_T, SIZE_T}; |