Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
TimonPost committed Apr 7, 2023
1 parent 764a577 commit 8233d42
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/event/event_api/source/unix/mio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ use crate::Result;

#[cfg(feature = "event-stream")]
use crate::event::sys::Waker;
use crate::terminal::file_descriptor::{tty_fd, FileDesc};
use crate::event::{
source::EventSource,
sys::unix::{
file_descriptor::{tty_fd, FileDesc},
parse::parse_event,
parse::parse_event,
},
timeout::PollTimeout,
Event, InternalEvent,
Expand Down
4 changes: 2 additions & 2 deletions src/event/event_api/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{fmt};
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

use crate::{csi, Command, Result};
use crate::{csi, Command};
use bitflags::bitflags;
use std::hash::{Hash, Hasher};

Expand Down Expand Up @@ -111,7 +111,7 @@ impl Command for PopKeyboardEnhancementFlags {
}

#[cfg(windows)]
fn execute_winapi(&self) -> Result<()> {
fn execute_winapi(&self) -> crate::Result<()> {
use std::io;

Err(io::Error::new(
Expand Down
4 changes: 1 addition & 3 deletions src/terminal/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ mod windows;
#[cfg(unix)]
mod unix;
#[cfg(unix)]
pub mod file_descriptor;
#[cfg(unix)]
pub mod waker;
pub mod file_descriptor;
2 changes: 1 addition & 1 deletion src/terminal/sys/unix.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! UNIX related logic for terminal manipulation.

use crate::event::sys::unix::file_descriptor::{tty_fd, FileDesc};
use crate::terminal::sys::file_descriptor::{tty_fd, FileDesc};
use libc::{
cfmakeraw, ioctl, tcgetattr, tcsetattr, termios as Termios, winsize, STDOUT_FILENO, TCSANOW,
TIOCGWINSZ,
Expand Down

0 comments on commit 8233d42

Please sign in to comment.