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/platform/windows.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/platform/windows.rs') 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 { - argv.into_iter() + argv.iter() .map(|arg| arg.to_string_lossy().into_owned()) .collect() } -- cgit v1.2.3