mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 11:17:15 +03:00
improve conditional use statements
This commit is contained in:
parent
fa54f02b27
commit
ce102d36b3
@ -3,17 +3,16 @@ use crate::os::windows::event::EventHandle;
|
||||
#[cfg(target_os = "macos")]
|
||||
use core_foundation::runloop::*;
|
||||
use failure::Fallible;
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
use filedescriptor::{FileDescriptor, Pipe};
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
use mio::unix::EventedFd;
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
use mio::{Evented, Poll, PollOpt, Ready, Token};
|
||||
use promise::{BasicExecutor, SpawnFunc};
|
||||
use std::collections::VecDeque;
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
use std::os::unix::io::AsRawFd;
|
||||
use std::sync::{Arc, Mutex};
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
use {
|
||||
filedescriptor::{FileDescriptor, Pipe},
|
||||
mio::unix::EventedFd,
|
||||
mio::{Evented, Poll, PollOpt, Ready, Token},
|
||||
std::os::unix::io::AsRawFd,
|
||||
};
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
pub(crate) static ref SPAWN_QUEUE: Arc<SpawnQueue> = Arc::new(SpawnQueue::new().expect("failed to create SpawnQueue"));
|
||||
|
Loading…
Reference in New Issue
Block a user