From 03916829b37e01f21a7c114aef8d2b0ef50db12f Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Fri, 29 Aug 2025 14:05:11 -0300 Subject: [PATCH] fix: remove unused imports and fix temporary value reference in options Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/meta_plugin/env.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/meta_plugin/env.rs b/src/meta_plugin/env.rs index 084e41a..6d87ce7 100644 --- a/src/meta_plugin/env.rs +++ b/src/meta_plugin/env.rs @@ -1,6 +1,4 @@ use crate::meta_plugin::{MetaPlugin, MetaPluginType, process_metadata_outputs}; -use log::debug; -use std::collections::HashMap; #[derive(Debug, Clone)] pub struct EnvMetaPlugin { @@ -130,7 +128,10 @@ impl MetaPlugin for EnvMetaPlugin { } fn options(&self) -> &std::collections::HashMap { - &std::collections::HashMap::new() + use once_cell::sync::Lazy; + static EMPTY: Lazy> = + Lazy::new(|| std::collections::HashMap::new()); + &EMPTY } fn options_mut(&mut self) -> &mut std::collections::HashMap {