diff --git a/src/function.rs b/src/function.rs index 5f5aaed..a2d71a3 100644 --- a/src/function.rs +++ b/src/function.rs @@ -141,6 +141,7 @@ impl Functions { .extension() .and_then(OsStr::to_str) .map(|s| s.to_lowercase()); + #[cfg_attr(not(unix), expect(dead_code))] let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py")); if file_path.exists() {