style: Cleaned up some linting issues for Windows

This commit is contained in:
Dark-Alex-17 committed 2025-10-16 13:30:30 -06:00
1 parent 65a3dbb228
commit 20bf911732
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ impl Agent {
.extension() .extension()
.and_then(OsStr::to_str) .and_then(OsStr::to_str)
.map(|s| s.to_lowercase()); .map(|s| s.to_lowercase());
#[cfg_attr(not(unix), expect(unused))]
let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py")); let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py"));
if file_path.exists() { if file_path.exists() {
+1 -1
View File
@@ -141,7 +141,7 @@ impl Functions {
.extension() .extension()
.and_then(OsStr::to_str) .and_then(OsStr::to_str)
.map(|s| s.to_lowercase()); .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")); let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py"));
if file_path.exists() { if file_path.exists() {