Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

fix(plugins): cfg-gate non-Windows hook path import (#3302)

Wu Shuwen917a9e28ee91
diff --git a/rust/crates/plugins/src/hooks.rs b/rust/crates/plugins/src/hooks.rs
index ff02c2ac..9ceb94e3 100644
--- a/rust/crates/plugins/src/hooks.rs
+++ b/rust/crates/plugins/src/hooks.rs
@@ -1,4 +1,5 @@
use std::ffi::OsStr;
+#[cfg(not(windows))]
use std::path::Path;
use std::process::Command;