diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-11 20:12:49 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-11 18:12:49 +0200 |
| commit | c7a7cc454ac116467ce48365e075eb8ce53e458c (patch) | |
| tree | 2c31da71c3530cd129d140beac2d680b26c12800 /src/client/tests | |
| parent | 871ff8b91f969a0d6d7fcd21ad028723a77bac6c (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/tests')
| -rw-r--r-- | src/client/tests/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
