Skip to content

Commit

Permalink
Fix format (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjajaja committed Aug 6, 2023
1 parent e4ffda6 commit 8e25400
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cursor/sys/windows.rs
Expand Up @@ -207,12 +207,12 @@ impl From<Handle> for ScreenBufferCursor {

#[cfg(test)]
mod tests {
use serial_test::serial;
use super::{
move_down, move_left, move_right, move_to, move_to_column, move_to_next_line,
move_to_previous_line, move_to_row, move_up, position, restore_position, save_position,
};
use crate::terminal::sys::temp_screen_buffer;
use serial_test::serial;

#[test]
#[serial]
Expand Down
1 change: 0 additions & 1 deletion src/style/types/color.rs
Expand Up @@ -380,7 +380,6 @@ mod tests {
}
}


#[cfg(test)]
#[cfg(feature = "serde")]
mod serde_tests {
Expand Down
12 changes: 5 additions & 7 deletions src/terminal/sys.rs
Expand Up @@ -5,19 +5,17 @@
pub use self::unix::supports_keyboard_enhancement;
#[cfg(unix)]
pub(crate) use self::unix::{
disable_raw_mode, enable_raw_mode, window_size, is_raw_mode_enabled, size,
disable_raw_mode, enable_raw_mode, is_raw_mode_enabled, size, window_size,
};
#[cfg(windows)]
#[cfg(feature = "events")]
pub use self::windows::supports_keyboard_enhancement;
#[cfg(windows)]
pub(crate) use self::windows::{
clear, disable_raw_mode, enable_raw_mode, window_size, is_raw_mode_enabled, scroll_down,
scroll_up, set_size, set_window_title, size,
};
#[cfg(all(windows, test))]
pub(crate) use self::windows::temp_screen_buffer;
#[cfg(windows)]
pub(crate) use self::windows::{
temp_screen_buffer,
clear, disable_raw_mode, enable_raw_mode, is_raw_mode_enabled, scroll_down, scroll_up,
set_size, set_window_title, size, window_size,
};

#[cfg(windows)]
Expand Down

0 comments on commit 8e25400

Please sign in to comment.