diff --git a/src/cursor/sys/windows.rs b/src/cursor/sys/windows.rs index 496b6ba2..84a4cd07 100644 --- a/src/cursor/sys/windows.rs +++ b/src/cursor/sys/windows.rs @@ -207,12 +207,12 @@ impl From 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] diff --git a/src/style/types/color.rs b/src/style/types/color.rs index 21dbce41..6c42c079 100644 --- a/src/style/types/color.rs +++ b/src/style/types/color.rs @@ -380,7 +380,6 @@ mod tests { } } - #[cfg(test)] #[cfg(feature = "serde")] mod serde_tests { diff --git a/src/terminal/sys.rs b/src/terminal/sys.rs index 206fee53..9dde47d0 100644 --- a/src/terminal/sys.rs +++ b/src/terminal/sys.rs @@ -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)]