aboutsummaryrefslogtreecommitdiff
path: root/src/platform/windows.rs
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/platform/windows.rs
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/platform/windows.rs')
-rw-r--r--src/platform/windows.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/platform/windows.rs b/src/platform/windows.rs
index 87945daf..8344be2d 100644
--- a/src/platform/windows.rs
+++ b/src/platform/windows.rs
@@ -3125,7 +3125,8 @@ mod tests {
let parent_pid = std::process::id().to_string();
let test_exe = std::env::current_exe().expect("resolve test executable");
- let configurations: [(&str, fn(&mut Command)); 2] = [
+ type ConfigureCommand = fn(&mut Command);
+ let configurations: [(&str, ConfigureCommand); 2] = [
("background", super::configure_background_command_platform),
("server daemon", super::detach_server_daemon_command),
];
@@ -3172,7 +3173,7 @@ mod tests {
}
fn argv_strings(argv: &[std::ffi::OsString]) -> Vec<String> {
- argv.into_iter()
+ argv.iter()
.map(|arg| arg.to_string_lossy().into_owned())
.collect()
}