aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-09-11 20:12:49 +0400
committerGitHub <noreply@github.com>2026-09-11 18:12:49 +0200
commitc7a7cc454ac116467ce48365e075eb8ce53e458c (patch)
tree2c31da71c3530cd129d140beac2d680b26c12800 /src/client
parent871ff8b91f969a0d6d7fcd21ad028723a77bac6c (diff)
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.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/terminal_geometry.rs6
-rw-r--r--src/client/tests/mod.rs3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/client/terminal_geometry.rs b/src/client/terminal_geometry.rs
index aaf216df..d9120b0d 100644
--- a/src/client/terminal_geometry.rs
+++ b/src/client/terminal_geometry.rs
@@ -3,7 +3,7 @@ use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
use std::sync::Arc;
use std::time::Duration;
-#[cfg(any(unix, test))]
+#[cfg(unix)]
use tracing::debug;
use super::ClientLoopEvent;
@@ -177,7 +177,7 @@ pub(super) fn resize_poll_loop(
}
}
-#[cfg(any(not(windows), test))]
+#[cfg(not(windows))]
pub(super) fn query_host_terminal_appearance() {
let _ = write_host_terminal_appearance_query(io::stdout());
}
@@ -223,7 +223,7 @@ pub(super) fn write_host_cell_size_query(mut writer: impl io::Write) -> io::Resu
writer.flush()
}
-#[cfg(any(unix, test))]
+#[cfg(unix)]
pub(super) fn store_reported_cell_size(
reported_cell_size: &AtomicU64,
width_px: u32,
diff --git a/src/client/tests/mod.rs b/src/client/tests/mod.rs
index cca73232..24a8135f 100644
--- a/src/client/tests/mod.rs
+++ b/src/client/tests/mod.rs
@@ -218,10 +218,12 @@ fn clipboard_image_paste_bridge_triggers_on_configured_key_and_empty_paste() {
));
}
+#[cfg(unix)]
struct TempImageFile {
path: std::path::PathBuf,
}
+#[cfg(unix)]
impl TempImageFile {
fn new(extension: &str, bytes: &[u8]) -> Self {
Self::with_name_fragment("test", extension, bytes)
@@ -241,6 +243,7 @@ impl TempImageFile {
}
}
+#[cfg(unix)]
impl Drop for TempImageFile {
fn drop(&mut self) {
let _ = std::fs::remove_file(&self.path);