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/client/tests/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/tests') 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); -- cgit v1.2.3