From 8fc26676fb922e77c9c633fee2f5e2b378061b86 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 26 Sep 2023 15:17:44 +0200 Subject: [PATCH] Avoid clippy warnings on non-unix --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 07dc892..00b17e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -326,6 +326,7 @@ struct InputAction { bin_name: String, // How the script was called originally + #[cfg(unix)] original_script_path: Option, } @@ -534,6 +535,7 @@ fn decide_action_for( script: script_str, build_kind: args.build_kind, bin_name, + #[cfg(unix)] original_script_path: args.script.clone(), }) }