From ebe642f44a6fa2b5c517f95800edd3f7e08d4f04 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 16 Oct 2025 13:30:30 -0600 Subject: [PATCH] style: Cleaned up some linting issues for Windows --- src/config/agent.rs | 1 + src/function.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/agent.rs b/src/config/agent.rs index 8dae1c9..4bc0d9c 100644 --- a/src/config/agent.rs +++ b/src/config/agent.rs @@ -50,6 +50,7 @@ impl Agent { .extension() .and_then(OsStr::to_str) .map(|s| s.to_lowercase()); + #[cfg_attr(not(unix), expect(unused))] let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py")); if file_path.exists() { diff --git a/src/function.rs b/src/function.rs index 712dc88..f3142ed 100644 --- a/src/function.rs +++ b/src/function.rs @@ -141,7 +141,7 @@ impl Functions { .extension() .and_then(OsStr::to_str) .map(|s| s.to_lowercase()); - #[cfg_attr(not(unix), expect(dead_code))] + #[cfg_attr(not(unix), expect(unused))] let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py")); if file_path.exists() {