From c7a7cc454ac116467ce48365e075eb8ce53e458c Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Fri, 11 Sep 2026 20:12:49 +0400 Subject: fix: lint all targets on windows (#3963) Native Windows lint and check only clippy-checked the herdr binary, while macOS and Linux run clippy across all targets. Enable --all-targets on Windows and gate the Unix-only test helpers that this exposed so Windows check matches the Unix one. --- src/raw_input.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/raw_input.rs') diff --git a/src/raw_input.rs b/src/raw_input.rs index 0192366d..e13d9133 100644 --- a/src/raw_input.rs +++ b/src/raw_input.rs @@ -19,9 +19,9 @@ use crate::terminal_theme::{ }; const ESC: u8 = 0x1b; -#[cfg(any(unix, test))] +#[cfg(unix)] pub(crate) const RAW_INPUT_IDLE_FLUSH_TIMEOUT_MS: i32 = 10; -#[cfg(any(unix, test))] +#[cfg(unix)] pub(crate) const MOUSE_ACTIVE_ESCAPE_SEQUENCE_FLUSH_TIMEOUT_MS: i32 = 150; pub(crate) const GHOSTTY_COLOR_SCHEME_DARK_REPORT: &[u8] = b"\x1b[?997;1n"; pub(crate) const GHOSTTY_COLOR_SCHEME_LIGHT_REPORT: &[u8] = b"\x1b[?997;2n"; @@ -207,12 +207,12 @@ impl RawInputByteFramer { !self.buffer.is_empty() } - #[cfg(any(not(windows), test))] + #[cfg(unix)] pub(crate) fn has_pending_lone_escape(&self) -> bool { self.buffer.as_slice() == [ESC] } - #[cfg(any(unix, test))] + #[cfg(unix)] pub(crate) fn has_pending_incomplete_mouse_sequence(&self) -> bool { starts_with_incomplete_sgr_mouse_sequence(&self.buffer) || starts_with_incomplete_default_mouse_sequence(&self.buffer) -- cgit v1.2.3