From f3cfb1faa601ddba97d051713aee47dd2e9d975a Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 10 Sep 2025 10:12:02 -0300 Subject: [PATCH] refactor: Isolate conditional compilation of magic_file plugin import Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e8fd5b8..0744e95 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,12 +29,14 @@ use filter_plugin::{ // Import all meta plugins to ensure they register themselves #[allow(unused_imports)] use meta_plugin::{ - #[cfg(feature = "magic")] - magic_file, cwd, text, user, shell, shell_pid, keep_pid, digest, read_time, read_rate, hostname, exec, env }; +#[cfg(feature = "magic")] +#[allow(unused_imports)] +use meta_plugin::magic_file; + // Initialize plugins at library load time pub fn init_plugins() { // This will be expanded in Step 3 implementation