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() {